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-subscribermetrics: Prometheus metric definitions and exportotel-otlp: OTLP trace and metric export to any OTel collectorotel-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§
- Telemetry
Config - Telemetry configuration.
- Telemetry
Guard - Guard that keeps telemetry systems alive while held. Drop this to flush and shutdown OTel exporters.