Skip to main content

initialize_metrics

Function initialize_metrics 

Source
pub fn initialize_metrics()
Expand description

Registers process-wide compatibility gauges with the global meter provider.

Hosts should call this after installing their OpenTelemetry meter provider. Other libsy metrics are created when recorded and do not require initialization. Spans and structured logs require the host to install a tracing subscriber separately.