opentelemetry::global

Function meter

source
pub fn meter(name: impl Into<Cow<'static, str>>) -> Meter
Expand description

Creates a named Meter via the configured GlobalMeterProvider.

If the name is an empty string, the provider will use a default name.

This is a more convenient way of expressing global::meter_provider().meter(name).