class HttpPoolTransport implements TransportInterface

Constants

DELIVERY_CONTEXT_KEY

Properties

protected WaitGroup $group

Methods

__construct(HttpTransportPool $pool)

Create a transport that sends events through an owned pool.

Result
send(Event $event)

Send an event to Sentry via a pooled transport.

Result
close(int|null $timeout = null)

Observe or wait for accepted sends to complete.

void
shutdown()

Close the underlying transport pool.

void
createCoroutine(callable $callback, Closure $wrapper)

Create the coroutine that owns a checked-out transport.

Details

at line 33
__construct(HttpTransportPool $pool)

Create a transport that sends events through an owned pool.

Parameters

HttpTransportPool $pool

at line 43
Result send(Event $event)

Send an event to Sentry via a pooled transport.

Skip the event when pool acquisition times out or the pool is closed.

Parameters

Event $event

Return Value

Result

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

Observe or wait for accepted sends to complete.

Parameters

int|null $timeout

Return Value

Result

at line 127
void shutdown()

Close the underlying transport pool.

Return Value

void

at line 137
protected void createCoroutine(callable $callback, Closure $wrapper)

Create the coroutine that owns a checked-out transport.

Parameters

callable $callback
Closure $wrapper

Return Value

void