Expand description
Rotating trace-segment buffers: the on-disk and in-memory sinks.
Structs§
- Adaptive
Rotation Config - Sets the rotation period from the observed byte rate, so segments land near
a target size and stay under
max_file_size. Opt in withadaptive_rotationonDiskBuffer::builderorMemoryBuffer::builder. - Disk
- Disk-backed mode (default).
- Disk
Buffer Builder - Use builder syntax to set the inputs and finish with
build(). - Memory
- In-memory mode.
- Memory
Buffer Builder - Use builder syntax to set the inputs and finish with
build(). - Segment
Writer - A writer that rotates trace segments to bound resource usage and time.
Generic over backend: use
DiskBuffer(files) orMemoryBuffer.
Traits§
- Buffer
Mode - Marker trait for
SegmentWriter’s backend mode. Sealed: onlyDiskandMemoryimplement it.
Type Aliases§
- Disk
Buffer - Alias for the disk-backed writer (the default mode).
- Memory
Buffer - Alias for the in-memory writer.