Skip to main content

DefaultInstrumentor

Type Alias DefaultInstrumentor 

Source
pub type DefaultInstrumentor = TracingInstrumentor;
Expand description

The default Instrumentor for the active backend.

Resolves to TracingInstrumentor when tracing-backend is enabled, or to [OtelInstrumentor] when only otel-backend is active. Use this alias as the I type parameter of TracingLayer to avoid hard-coding a backend.

Aliased Typeยง

pub struct DefaultInstrumentor;