Function trillium_opentelemetry::instrument_handler

source ยท
pub fn instrument_handler<H, T>(
    handler: H,
    tracer: T,
) -> InstrumentHandler<H, T>
where H: Handler, T: Tracer + Send + Sync + 'static, T::Span: Send + Sync + 'static,
Expand description

decorate a handler with a specific tracer

IMPORTANT This handler expects crate::Trace or crate::Instrument to have been run on the conn prior to running this handler.