arcjet/arcjet-js

Pre & post API call logs

Closed this issue · 0 comments

Whilst investigating https://github.com/arcjet/arcjet/issues/561 I found it confusing to understand what remote calls the SDK was making. It logs before it makes a call to the report API, but only logs after it makes a call to the decide API (through the latency log). This made it look like it wasn't making calls to the decide API because I assumed it would log before the decide API call, too.

It would be useful to have 4 log entries, pre and post each API call.