Module telemetry

Module telemetry 

Source
Expand description

Observability layer — OpenTelemetry tracing, structured logging, Prometheus metrics.

All components are feature-gated for zero overhead when disabled:

  • tracing-support: Console logging via tracing-subscriber
  • metrics: Prometheus metric definitions and export
  • otel-otlp: OTLP trace and metric export to any OTel collector
  • otel-gcp: Google Cloud-native trace and metric export (Cloud Trace + Cloud Monitoring)

Modules§

logging
Structured logging helpers.
metrics
Prometheus metric definitions — counters, histograms, gauges.
spans
OpenTelemetry span definitions for session operations.

Structs§

TelemetryConfig
Telemetry configuration.
TelemetryGuard
Guard that keeps telemetry systems alive while held. Drop this to flush and shutdown OTel exporters.