Skip to main content

Crate leviath_telemetry

Crate leviath_telemetry 

Source
Expand description

OpenTelemetry export for Leviath’s telemetry event stream (issue #73).

The runtime emits pure-data TelemetryEvents into whatever TelemetrySink the host installs; this crate provides the sinks that leave the process: OtelSink (OTLP over HTTP/protobuf - port 4318, never gRPC) and LogSink (readable lines through tracing). build_sink picks one from the [observability] config. The SDK dependency stops here: leviath-runtime sees only the trait.

Structs§

BuiltTelemetry
What build_sink hands the host: the event sink for the engine’s telemetry resource, plus - for the OTLP exporter - a tracing layer that exports the daemon’s own log events through the same pipeline.
LogSink
TelemetrySink that narrates events as tracing lines (→ stderr).
OtelSink
TelemetrySink that exports to OpenTelemetry providers.

Functions§

build_sink
The sink the config asks for, or None when telemetry is off (disabled, exporter = "none", or an OTLP pipeline that failed to build - the last is logged and dropped rather than failing the daemon: observability must never stop the work it observes).

Type Aliases§

LogLayer
A boxed tracing-subscriber layer, installable into the CLI’s reloadable subscriber slot to forward the process’s own log events over OTLP.