Loading Mongoose v7 with ESM does not work with OpenTelemetry Instrumentation: TypeError: Cannot read properties of undefined (reading 'prototype') #2792
Labels
bug
Something isn't working
pkg:instrumentation-mongoose
priority:p1
Bugs which cause problems in end-user applications such as crashes, data inconsistencies
What version of OpenTelemetry are you using?
What version of Node are you using?
Node v20.18
What did you do?
Tried to set up OpenTelemetry with ESM, while using auto-instrumentation and Mongoose v7.
What did you expect to see?
It worked, not errors
What did you see instead?
Additional context
tracing.js
index.js
This is related to #2568, which has been closed by the author.
Looks like some other packages also had similar errors, and I can also reproduce this issue with the
dataloader
package.E.g for pg: #1693, which was fixed here: #1701
and here ioredis: #1692, fixed here: #1694
The text was updated successfully, but these errors were encountered: