Skip to main content

init_telemetry

Function init_telemetry 

Source
pub fn init_telemetry(
    service_name: &str,
) -> Result<TelemetryHandles, Box<dyn Error>>
Expand description

Initialise OpenTelemetry traces + metrics with OTLP gRPC export.

Convenience wrapper around Telemetry::builder with all defaults. For fine-grained control, use the builder directly.

§Example

let _tel = otel_bootstrap::init_telemetry("my-service")?;
// start axum server...