Module telemetry

Module telemetry 

Source
Expand description

Agent-level observability — OpenTelemetry tracing, structured logging, Prometheus metrics.

Mirrors the wire crate’s telemetry layer but for agent lifecycle operations. Spans and structured logging go through the tracing facade and are always compiled (no-ops until a subscriber is installed). Prometheus metric definitions are gated behind the metrics feature.

Re-exports§

pub use setup::TelemetrySetup;

Modules§

logging
Structured logging helpers for agent lifecycle.
metrics
Prometheus metric definitions for agent lifecycle — counters, histograms.
setup
OTLP exporter setup helpers for agent-level telemetry.
spans
OpenTelemetry span definitions for agent lifecycle operations.

Structs§

TelemetryMiddleware
Auto-registered middleware that calls telemetry functions. Spans and log events are no-ops until a tracing subscriber is installed; metrics compile to no-ops without the metrics feature.