ioredis instrumentation span.end getting called twice #2254
Labels
bug
Something isn't working
pkg:instrumentation-ioredis
priority:p3
Bugs which cause problems in user apps not related to correctness (performance, memory use, etc)
What version of OpenTelemetry are you using?
"@opentelemetry/instrumentation-ioredis"@0.40.0 (probably earlier ones too)
What version of Node are you using?
20
What did you do?
Enable IORedisInstrumentation class. On error querying Redis, causes warning around calling end on span already ended.
Looking at the code here, end is getting called both on reject but again in the catch.
What did you expect to see?
no errors
What did you see instead?
Messages like the follwing
Additional context
There is obviously an issue with our Redis setup, but using the IORedis instrumentation is actually causing issues. When we remove the instrumentation class the issues we see with our Redis go away (as well obviosuly of the error mentioned above).
The text was updated successfully, but these errors were encountered: