class HttpPoolTransport implements TransportInterface

Constants

CONTEXT_TRANSPORTS_KEY

Context key for the per-coroutine list of checked-out transports.

Methods

__construct(Pool $pool)

No description

Result
send(Event $event)

Send an event to Sentry via a pooled transport.

Result
close(int|null $timeout = null)

Release all checked-out transports back to the pool.

Details

at line 24
__construct(Pool $pool)

No description

Parameters

Pool $pool

at line 35
Result send(Event $event)

Send an event to Sentry via a pooled transport.

Checks out a transport from the pool. If the pool is exhausted, the event is silently dropped (backpressure) to avoid blocking the request coroutine. All checked-out transports are tracked per-coroutine and released on close().

Parameters

Event $event

Return Value

Result

at line 72
Result close(int|null $timeout = null)

Release all checked-out transports back to the pool.

Called by Integration::flushEvents() → Client::flush() at the end of each request lifecycle via FlushEventsMiddleware::terminate().

Parameters

int|null $timeout

Return Value

Result