Skip to main content

setup_meter

Function setup_meter 

Source
pub fn setup_meter(config: MeterConfig) -> Result<MeterGuard>
Expand description

Sets up and registers the global meter provider. A second call logs a warning and returns a guard for the provider already registered; once a guard has been shut down, the next call registers a new provider.

ยงErrors

The OTLP exporter could not be built from the environment.