Function set_meter_provider
pub fn set_meter_provider<P>(new_provider: P)
Expand description
Sets the given MeterProvider
instance as the current global meter
provider.
Libraries should NOT call this function. It is intended for applications/executables.
NOTE: This function should be called before getting Meter
instances via meter()
or meter_with_scope()
. Otherwise, you could get no-op Meter
instances.