Libraries
    Preparing search index...

    Interface ClientTracingMiddlewareOptions

    Configuration for clientTracingMiddleware.

    interface ClientTracingMiddlewareOptions {
        enrichSpan?: (span: Span, info: ClientTracingInfo) => void;
        recordUrlFull?: boolean;
        skip?: (url: string, init: RequestInit) => boolean;
        tracerName?: string;
        tracerVersion?: string;
    }
    Index

    Properties

    enrichSpan?: (span: Span, info: ClientTracingInfo) => void

    Hook for adding custom attributes/events before the request is sent. Errors thrown here are swallowed.

    recordUrlFull?: boolean

    Whether to record url.full.

    Disabled by default because full URLs can include query strings with sensitive values.

    false
    
    skip?: (url: string, init: RequestInit) => boolean

    Predicate for skipping tracing on selected outbound requests.

    tracerName?: string

    Tracer name used when resolving the OTel tracer.

    '@cleverbrush/otel'
    
    tracerVersion?: string

    Tracer version.