pub fn span_layer<S>(
otlp_config: OtlpConfig,
) -> Result<OpenTelemetryLayer<S, SdkTracer>>where
for<'span> S: Subscriber + LookupSpan<'span>,Expand description
Creates a tracing [OpenTelemetryLayer] that exports spans to an OTLP endpoint.
This layer can be added to a [tracing_subscriber::Registry] to enable OpenTelemetry tracing
with OTLP export to an url.