dd-trace
    Preparing search index...

    Interface router

    This plugin automatically instruments the router module.

    interface router {
        enabled?: boolean;
        middleware?: boolean;
        service?: any;
    }
    Index

    Properties

    enabled?: boolean

    Whether to enable the plugin.

    true
    
    middleware?: boolean

    Whether to enable instrumentation of router.middleware spans. When set to false, middleware spans are suppressed but route tracking (resource name, http.route tag) is still performed.

    true
    
    service?: any

    The service name to be used for this plugin.