class HttpPoolTransport implements TransportInterface

Constants

DELIVERY_CONTEXT_KEY

Properties

protected WaitGroup $group

Methods

__construct(HttpTransportPool $pool, Options $options)

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, Options $options)

Create a transport that sends events through an owned pool.

Parameters

HttpTransportPool $pool
Options $options

at line 45
Result send(Event $event)

Send an event to Sentry via a pooled transport.

Skip the event when there is nowhere to send it, pool acquisition times out, or the pool is closed.

Parameters

Event $event

Return Value

Result

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

Observe or wait for accepted sends to complete.

Parameters

int|null $timeout

Return Value

Result

at line 135
void shutdown()

Close the underlying transport pool.

Return Value

void

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

Create the coroutine that owns a checked-out transport.

Parameters

callable $callback
Closure $wrapper

Return Value

void