diff --git a/plugins/node/opentelemetry-instrumentation-redis/src/utils.ts b/plugins/node/opentelemetry-instrumentation-redis/src/utils.ts index 52729c3df56..e3e3b68c1bc 100644 --- a/plugins/node/opentelemetry-instrumentation-redis/src/utils.ts +++ b/plugins/node/opentelemetry-instrumentation-redis/src/utils.ts @@ -57,7 +57,7 @@ export const getTracedCreateStreamTrace = ( original: Function ) => { return function create_stream_trace(this: redisTypes.RedisClient) { - if (!this.stream) { + if (!Object.prototype.hasOwnProperty.call(this, 'stream')) { Object.defineProperty(this, 'stream', { get() { return this._patched_redis_stream;