Expand description
Delivery mechanisms for Data: the Consumer / [AsyncConsumer]
traits and the three built-in consumers ported from the Go SDK.
LogConsumerwrites NDJSON log files consumed later by LogBus. In async mode it runs a streaming writer task fed by an MPSC channel.BatchConsumerbuffers events and uploads them over HTTPS (gzip compression, three retry attempts, a failure cache, optional auto flush).DebugConsumervalidates each event against the receiver, one by one.
§Choosing an API style
Structs§
- Batch
Consumer - Buffer events and upload them in batches to the ThinkingData receiver over HTTPS.
- Batch
Consumer Config - Configuration for
BatchConsumer, mirroring the Go SDK’sTDBatchConfig. - Debug
Consumer - Validate data against the ThinkingData receiver, one event per request.
- LogConsumer
- Write data to local log files, one JSON object per line, for later ingestion with LogBus or another transfer tool.
- LogConsumer
Config - Configuration for
LogConsumer, mirroring the Go SDK’sTDLogConsumerConfig.
Enums§
- Rotate
Mode - How often the log file rotates by time.
Constants§
- DEFAULT_
BATCH_ SIZE - Event count threshold for triggering a flush.
- DEFAULT_
CACHE_ CAPACITY - Maximum number of cached (undelivered) batches.
- DEFAULT_
INTERVAL_ SECS - Auto flush spacing in seconds.
- DEFAULT_
TIMEOUT_ MS - Request deadline in milliseconds.
- MAX_
BATCH_ SIZE - Hard upper bound for the batch size.
Traits§
- Consumer
- Synchronous delivery interface implemented by all consumers.