Skip to main content

Crate redline_core

Crate redline_core 

Source
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§

CallsiteMetadata
Static metadata sent once per callsite in binary mode.
DecodedCallsiteMetadata
Decoded callsite metadata from a binary metadata frame.
DecodedField
Decoded field from a binary event or span.
DecodedRecord
Decoded event record from a binary frame.
DecodedSpanSnapshot
Decoded span snapshot from a binary frame.
Directive
One target-specific filter rule.
EncodeConfig
Controls which span context is included during encoding.
FieldCapture
tracing field visitor that captures owned values.
InlineString
UTF-8 string storage optimized for short values.
OwnedField
One named structured field.
OwnedRecord
Owned event record ready for encoding.
SpanSnapshot
Snapshot of one span included in an encoded record.
TargetFilter
Target and level filter used by redline.
Timestamp
Unix timestamp used by redline.

Enums§

BinaryDecodeError
Error returned when decoding binary frames.
BinaryFrameKind
Binary frame type identifier.
CallsiteKind
Distinguishes event and span callsites.
DecodedBinaryFrame
Decoded binary frame.
FieldValue
Owned field value captured from a tracing event or span.
FilterParseError
Error returned when parsing a filter spec.
OutputFormat
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§

OwnedFields
Small-vector field storage used by records and spans.