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§
- Built
Telemetry - What
build_sinkhands the host: the event sink for the engine’s telemetry resource, plus - for the OTLP exporter - atracinglayer that exports the daemon’s own log events through the same pipeline. - LogSink
TelemetrySinkthat narrates events astracinglines (→ stderr).- Otel
Sink TelemetrySinkthat exports to OpenTelemetry providers.
Functions§
- build_
sink - The sink the config asks for, or
Nonewhen 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-subscriberlayer, installable into the CLI’s reloadable subscriber slot to forward the process’s own log events over OTLP.