pub fn layer<S>() -> OpenTelemetryLayer<S, api::NoopTracer>
where
    S: Subscriber + for<'span> LookupSpan<'span>,
{
    OpenTelemetryLayer::default()
}
/// Construct a layer to track spans via [OpenTelemetry].
///
/// [OpenTelemetry]: https://opentelemetry.io
///
/// # Examples
///
/// ```rust,no_run
/// use tracing_subscriber::layer::SubscriberExt;
/// use tracing_subscriber::Registry;
///
/// // Use the tracing subscriber `Registry`, or any other subscriber
/// // that impls `LookupSpan`
/// let subscriber = Registry::default()
///     .with(tracing_opentelemetry::layer());
/// # drop(subscriber);
/// ```
Construct a layer to track spans via [OpenTelemetry].
Construct a layer to track spans via [ OpenTelemetry ] .
pub fn layer<S>() -> OpenTelemetryLayer<S, api::NoopTracer>
where
    S: Subscriber + for<'span> LookupSpan<'span>,
{
    OpenTelemetryLayer::default()
}
pub fn layer < S > ( ) -> OpenTelemetryLayer < S , api :: NoopTracer > where S : Subscriber + for < ' span > LookupSpan < ' span > , { OpenTelemetryLayer :: default ( ) }
Construct a layer to track spans via [OpenTelemetry].
Construct a layer to track spans via [ OpenTelemetry ] .
examples
```rust,no_run
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::Registry.

Use the tracing subscriber `Registry`, or any other subscriber
that impls `LookupSpan`
let subscriber = Registry::default()
.with(tracing_opentelemetry::layer()).
` ` ` rust no_run use tracing_subscriber :: layer :: SubscriberExt ; use tracing_subscriber :: Registry . Use the tracing subscriber ` Registry ` or any other subscriber that impls ` LookupSpan ` let subscriber = Registry :: default () . with ( tracing_opentelemetry :: layer () ) .
drop(subscriber);
None