Skip to main content
Both libraries buffer events and send them in batches via HTTP POST to the configured endpoint.

Parameters

ParameterValue
Flush interval2 seconds
Flush threshold20 events
TransportHTTP POST with JSON body
Auth headerx-api-key: <apiKey>
Error handlingAll errors silently swallowed — never affects host app

TypeScript

Uses globalThis.fetch. The timer is unref’d so it doesn’t keep the process alive. Call shutdown() to flush remaining events and stop the timer.

Python

Uses urllib.request (stdlib). The timer is a daemon thread. An atexit handler calls shutdown() automatically on process exit.