dd-trace
    Preparing search index...

    Interface elasticsearch

    This plugin automatically instruments the elasticsearch module.

    interface elasticsearch {
        enabled?: boolean;
        hooks?: { query?: (span?: Span, params?: TransportRequestParams) => any };
        measured?: boolean | { [key: string]: boolean };
        service?: any;
    }

    Hierarchy (View Summary)

    Index

    Properties

    enabled?: boolean

    Whether to enable the plugin.

    true
    
    hooks?: { query?: (span?: Span, params?: TransportRequestParams) => any }

    Hooks to run before spans are finished.

    Type Declaration

    • Optionalquery?: (span?: Span, params?: TransportRequestParams) => any

      Hook to execute just before the query span finishes.

    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.

    service?: any

    The service name to be used for this plugin.