Module encoder
Available on crate feature
dial9 only.Expand description
Thread-local event encoding buffers and the Encodable trait.
ThreadLocalBuffer is the entrypoint for almost all dial9 events
The TL buffer is created lazily the first time an event is sent. Events are encoded directly
into a thread-local Encoder<Vec<u8>> and flushed to the central collector when the encoded
batch reaches the configured batch size (default 1 MB).
Each buffer is wrapped in Arc<Mutex<…>> so the flush thread can intrusively
drain idle/silent threads via TlBufferHandles registered in SharedState.
Structs§
- Thread
Local Encoder - Scoped encoder for writing events into the thread-local trace buffer.
Traits§
- Encodable
- Trait for types that can be encoded into a dial9 trace.