Skip to main content

ENVELOPE_INTERVAL

Constant ENVELOPE_INTERVAL 

Source
const ENVELOPE_INTERVAL: Duration;
Expand description

How long the flush thread waits between the envelopes of one flush.

The SDK’s batcher queues an envelope as soon as it holds ENVELOPE_METRICS metrics, so capturing a whole flush at once would queue all of its envelopes together. Waiting lets a responsive transport send each envelope before the next one is queued, so a flush takes about one place in the transport queue at a time, and a full flush takes about 15 seconds.