dd-trace
    Preparing search index...

    Interface react_router

    This plugin automatically instruments React Router Framework Mode via the ServerInstrumentation API (createRequestHandler), tagging Express/http spans with parameterized routes and creating loader/action child spans.

    Requires react-router >= 7.9.5 (stable instrumentations in >= 7.15). Configure request span options on http or the host framework integration.

    interface react_router {
        enabled?: boolean;
        measured?: boolean | { [key: string]: boolean };
    }

    Hierarchy

    • Pick<Instrumentation, "enabled" | "measured">
      • react_router
    Index
    enabled?: boolean

    Whether to enable the plugin.

    true
    
    measured?: boolean | { [key: string]: boolean }

    Whether to measure the span. Can also be set to a key-value pair with span names as keys and booleans as values for more granular control.