Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface redis

This plugin automatically instruments the redis module.

Hierarchy

  • Instrumentation
    • redis

Index

Properties

Optional allowlist

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

List of commands that should be instrumented.

default

/^.*$/

Optional blocklist

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.

default

[]

Optional enabled

enabled: undefined | false | true

Whether to enable the plugin.

default

true

Optional measured

measured: 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.

Optional service

service: string | any

The service name to be used for this plugin.

Generated using TypeDoc