Parameters
| Parameter | Value |
|---|---|
| Flush interval | 2 seconds |
| Flush threshold | 20 events |
| Transport | HTTP POST with JSON body |
| Auth header | x-api-key: <apiKey> |
| Error handling | All errors silently swallowed — never affects host app |
TypeScript
UsesglobalThis.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
Usesurllib.request (stdlib). The timer is a daemon thread. An atexit handler calls shutdown() automatically on process exit.