Creates the node-redis client when fromNodeRedis's adapter first connects.
Passing a factory that imports redis inside it defers loading node-redis
until the first command: an OpenTelemetry instrumentation patches
@redis/client as Node loads it, so a client created at module load, before
TelemetryPlugin registers, is never traced.
Creates the node-redis client when fromNodeRedis's adapter first connects.
Passing a factory that imports
redisinside it defers loading node-redis until the first command: an OpenTelemetry instrumentation patches@redis/clientas Node loads it, so a client created at module load, beforeTelemetryPluginregisters, is never traced.