dd-trace
    Preparing search index...

    Interface iovalkey

    This plugin automatically instruments the iovalkey module.

    interface iovalkey {
        allowlist?:
            | string
            | RegExp
            | ((command: string) => boolean)
            | (string | RegExp | ((command: string) => boolean))[];
        blocklist?:
            | string
            | RegExp
            | ((command: string) => boolean)
            | (string | RegExp | ((command: string) => boolean))[];
        enabled?: boolean;
        filter?: (command: string) => boolean;
        measured?: boolean | { [key: string]: boolean };
        service?: any;
        splitByInstance?: boolean;
    }
    Index

    Properties

    allowlist?:
        | string
        | RegExp
        | ((command: string) => boolean)
        | (string | RegExp | ((command: string) => boolean))[]

    List of commands that should be instrumented. Commands must be in lowercase for example 'xread'.

    /^.*$/
    
    blocklist?:
        | string
        | RegExp
        | ((command: string) => boolean)
        | (string | RegExp | ((command: string) => boolean))[]

    List of commands that should not be instrumented. Takes precedence over allowlist if a command matches an entry in both. Commands must be in lowercase for example 'xread'.

    []
    
    enabled?: boolean

    Whether to enable the plugin.

    true
    
    filter?: (command: string) => boolean

    Custom filter function used to decide whether a Valkey command should be instrumented. When provided, this takes precedence over allowlist/blocklist configuration. If not provided, allowlist/blocklist logic will be used instead.

    Type Declaration

      • (command: string): boolean
      • Parameters

        • command: string

          The Valkey command name to filter

        Returns boolean

        true to instrument the command, false to skip it

    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.

    splitByInstance?: boolean

    Whether to use a different service name for each Redis instance based on the configured connection name of the client.

    false