1#![allow(clippy::module_name_repetitions)]
8
9use std::sync::LazyLock;
10
11use opentelemetry::metrics::Meter;
12
13mod metrics;
14mod trace_context;
15mod tracing;
16mod utils;
17
18pub use self::{metrics::*, trace_context::*, tracing::*, utils::*};
19
20static METER: LazyLock<Meter> = LazyLock::new(|| {
21 let scope = opentelemetry::InstrumentationScope::builder(env!("CARGO_PKG_NAME"))
22 .with_version(env!("CARGO_PKG_VERSION"))
23 .with_schema_url(opentelemetry_semantic_conventions::SCHEMA_URL)
24 .build();
25
26 opentelemetry::global::meter_with_scope(scope)
27});