actix-web-opentelemetry 0.22.0

Deprecated: 0.22.0 is the last release for this crate. Use opentelemetry-instrumentation-actix-web instead
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use opentelemetry::InstrumentationScope;

#[cfg(feature = "metrics")]
#[cfg_attr(docsrs, doc(cfg(feature = "metrics")))]
pub(crate) mod metrics;
pub(crate) mod route_formatter;
pub(crate) mod trace;

pub(crate) fn get_scope() -> InstrumentationScope {
    InstrumentationScope::builder("actix-web-opentelemetry")
        .with_version(env!("CARGO_PKG_VERSION"))
        .with_schema_url(opentelemetry_semantic_conventions::SCHEMA_URL)
        .build()
}