Expand description
Sends the batches of the SentryPolicy through the Sentry SDK.
StructsΒ§
- Checked
Transport π - Creates the SDKβs default transport, and gives it to a
TransportCheck. - Pace π
- Spaces out the envelopes of a flush, until
stopis called. - Transport
Check π - Checks whether a Sentry transport has sent every envelope queued before the check, one check
at a time, on the thread that calls
run.
ConstantsΒ§
- ENVELOPE_
INTERVAL π - How long the flush thread waits between the envelopes of one flush.
- TRANSPORT_
WAIT π - How long a flush waits for the Sentry transport to send what is already in its queue, before it sends nothing instead.
- UNIT_
OVERRIDES π - The Sentry units of metrics whose unit [
metrics::Unit] canβt express.
StaticsΒ§
- PACE π
- Spaces out the envelopes of periodic flushes until Zebra shuts down.
- POLICY π
- The policy that every metric goes through once
starthas created it. - TRANSPORT π
- Checks the transport that
transport_factorycreates for the Sentry client.
FunctionsΒ§
- flush_
at_ πexit - Makes a periodic flush in progress send the rest of its batch at once, then sends what is due
at once, if
starthas created the policy and the transport has sent what earlier flushes queued. Zebra calls this when it shuts down or panics. - flush_
paced π - Flushes
policyiftransport_readyreturns true, and sends the batch paced bypace. - lock π
- log_
attribute π - send π
- Captures each metric in
batchon the current Sentry hub. - send_
paced π - Calls
sendwithbatchin envelope-sized parts, waiting onpacebetween parts. - sentry_
unit π - Returns the Sentry unit for
unit, orNonefor a count or a unit Sentry doesnβt have. - start π
- Returns the policy, creating it, a thread that flushes it every
FLUSH_INTERVAL, and a thread that checks the Sentry transport for those flushes, on the first call. ReturnsNoneand logs an error if those threads canβt start. - start_
with π - Creates the policy in
policyonly ifspawn_flushstarts the threads that flush it. - transport_
factory π - Returns the factory of the Sentry clientβs transport: the SDKβs default transport, which metrics flushes check before they send.
- transport_
ready π - Returns whether the Sentry transport has sent everything queued before, waiting up to
TRANSPORT_WAITfor it.