Expand description
Core types for redline.
This crate contains filter parsing, record capture, NDJSON encoding,
binary framing, and binary decoding. It can be used directly by custom
integrations that do not need the std subscriber crate.
Structs§
- Callsite
Metadata - Static metadata sent once per callsite in binary mode.
- Decoded
Callsite Metadata - Decoded callsite metadata from a binary metadata frame.
- Decoded
Field - Decoded field from a binary event or span.
- Decoded
Record - Decoded event record from a binary frame.
- Decoded
Span Snapshot - Decoded span snapshot from a binary frame.
- Directive
- One target-specific filter rule.
- Encode
Config - Controls which span context is included during encoding.
- Field
Capture tracingfield visitor that captures owned values.- Inline
String - UTF-8 string storage optimized for short values.
- Owned
Field - One named structured field.
- Owned
Record - Owned event record ready for encoding.
- Span
Snapshot - Snapshot of one span included in an encoded record.
- Target
Filter - Target and level filter used by
redline. - Timestamp
- Unix timestamp used by
redline.
Enums§
- Binary
Decode Error - Error returned when decoding binary frames.
- Binary
Frame Kind - Binary frame type identifier.
- Callsite
Kind - Distinguishes event and span callsites.
- Decoded
Binary Frame - Decoded binary frame.
- Field
Value - Owned field value captured from a
tracingevent or span. - Filter
Parse Error - Error returned when parsing a filter spec.
- Output
Format - Output format used by
redline.
Functions§
- capture_
record_ fields - Captures fields from a span record update.
- capture_
span_ fields - Captures fields from span attributes.
- decode_
binary_ frame - Decodes the next binary frame and returns the remaining input.
- encode_
binary_ metadata - Encodes one callsite metadata frame for binary output.
- encode_
binary_ record - Encodes one owned record as a binary event frame.
- encode_
ndjson_ record - Encodes one owned record as NDJSON.
- merge_
fields - Applies field updates, replacing existing values with the same name.
Type Aliases§
- Owned
Fields - Small-vector field storage used by records and spans.