pub fn build_opentelemetry_layer_with_test_exporter(
log_name: &str,
) -> (impl Layer<Registry>, InMemorySpanExporter, SdkTracerProvider)Expand description
Builds an OpenTelemetry layer with the opentelemetry.skip filter.
This is used for testing to avoid setting the global subscriber. Returns the layer, exporter, and tracer provider (which must be kept alive and shutdown).