Skip to main content

init_otlp_tracing

Function init_otlp_tracing 

Source
pub fn init_otlp_tracing(config: OtlpTracingConfig) -> McpResult<TelemetryGuard>
Expand description

Install an OTLP/gRPC exporter and a W3C Trace Context propagator.

This function must be called from within a Tokio runtime and before another global tracing subscriber has been installed.