EventTrackerConfig

Immutable configuration for EventTracker. Use Builder to construct.

Since

1.0.0

Types

Link copied to clipboard
class Builder

Fluent builder for EventTrackerConfig.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Ordered list of destinations. Order matters only for logging; runtime delivery is parallelised where safe.

Link copied to clipboard

Maximum time, in milliseconds, an event may sit in the queue before forcing a flush. Default: 30,000 ms (30 s).

Link copied to clipboard

Maximum number of events in a single backend batch. Range: 1–1000.

Link copied to clipboard

If true, the database is opened with SQLCipher (requires additional setup in the host app). Default: false.

Link copied to clipboard
val logger: EventLogger

SLF4J-style logger for internal diagnostics. Default: no-op.

Link copied to clipboard

Hard cap on the events table. Oldest rows are dropped on overflow. Default: 10,000.

Link copied to clipboard

Maximum HTTP retry attempts before events are moved to the dead-letter queue. Default: 8.

Link copied to clipboard

Per-event-name sampling rates in 0.0..1.0. Names not present default to 1.0 (always tracked).