Skip to main content

shutdown_metrics

Function shutdown_metrics 

Source
pub fn shutdown_metrics()
Expand description

Gracefully shut down OpenTelemetry metrics. In opentelemetry 0.31 there is no global shutdown_meter_provider(). Keep a handle to SdkMeterProvider in your app state and call shutdown() during graceful shutdown. This function remains a no-op for compatibility.