Skip to main content

Module span_buffer

Module span_buffer 

Source
Expand description

Bounded in-memory ring buffer of recorded spans.

Mirrors Python’s CogneeSpanExporter storage model (cognee/modules/observability/tracing.py): per-trace buckets, LRU eviction once max_traces is exceeded, no per-span eviction beyond a safety cap.

Structs§

BufferConfig
Configurable caps for the ring buffer.
BufferStats
Lightweight stats surfaced alongside the span list.
RecordedSpan
A single span snapshot, frozen at the moment its tracing span closed.
SpanBuffer
Bounded in-memory span buffer.
TraceSummary
Per-trace summary surfaced via /api/v1/activity/spans.

Enums§

SpanStatus
Span status as exported via the wire shape.