Skip to main content

Module telemetry

Module telemetry 

Source
Expand description

The telemetry seam: pure-data lifecycle events and the sink they flow into.

The runtime’s observability system translates ECS state changes into TelemetryEvent values and hands them to whatever TelemetrySink the host installed. The events carry plain data only - no SDK types - so the runtime never depends on an exporter, and tests can assert on the exact event stream with MemorySink. The OpenTelemetry-backed sink lives in leviath-telemetry; a host that installs nothing gets NoopSink.

Structs§

MemorySink
A sink that records every event in memory, for tests to assert on.
NoopSink
The sink used when no telemetry backend is installed: drops everything.

Enums§

LogKind
What kind of per-run log line a TelemetryEvent::Log carries.
TelemetryEvent
One observable moment in an agent run’s life.

Traits§

TelemetrySink
Where telemetry events go.