Observability infrastructure for Barbacane API Gateway.
This crate provides:
- Structured JSON logging with trace correlation
- Prometheus metrics registry and exposition
- Distributed tracing with W3C Trace Context
- OTLP export to OpenTelemetry Collector
Usage
use barbacane_telemetry::{TelemetryConfig, Telemetry};
let config = TelemetryConfig::new()
.with_log_level("info")
.with_otlp_endpoint("http://localhost:4317");
let telemetry = Telemetry::init(config)?;