trackkit / dispatcher/types / DispatcherOptions
Interface: DispatcherOptions
Defined in: dispatcher/types.ts:393
Configuration for the low-level network dispatcher.
This container controls how provider HTTP requests are sent, grouped, retried and measured. It wraps several option groups:
- transport: choose the low-level transport strategy.
- batching: control how events are grouped into batches.
- resilience: retries, ad-block handling and proxy settings.
- connection: reachability and offline monitoring.
- performance: sampling and timing metrics.
Most applications only set a small subset of these; everything else falls back to sensible defaults.
Properties
transportMode?
optionaltransportMode:TransportMode
Defined in: dispatcher/types.ts:401
Low-level strategy to use for sending events.
Defaults to 'smart', which adapts to ad-blockers and your resilience configuration. See TransportMode for full semantics.
defaultHeaders?
optionaldefaultHeaders:Record<string,undefined|string>
Defined in: dispatcher/types.ts:407
Default HTTP headers applied to every outgoing request before provider-specific headers.
batching?
optionalbatching:BatchingOptions
Defined in: dispatcher/types.ts:414
Event batching configuration to optimise network usage.
See BatchingOptions for available knobs.
connection?
optionalconnection:ConnectionOptions
Defined in: dispatcher/types.ts:421
Network connection monitoring and offline handling.
See ConnectionOptions for details.
performance?
optionalperformance:PerformanceOptions
Defined in: dispatcher/types.ts:428
Performance monitoring and sampling configuration.
See PerformanceOptions.
resilience?
optionalresilience:ResilienceOptions
Defined in: dispatcher/types.ts:435
Network resilience and error recovery configuration.
See ResilienceOptions.