Functions

bool
has_listeners()

If there are any listeners of user request events.

array|null
notify_commit(RootSpanData $span, int $status, array $headers, mixed|null $body = null)

Notifies the user request listeners of the imminence of a commit, and allows for the replacement of the response.

array|null
notify_start(RootSpanData $span, array $data, mixed|null $body = null)

Notifies the user request listeners of the start of a user request.

void
set_blocking_function(RootSpanData $span, callable $blockingFunction)

Sets a function to be called when blocking a request midway.