@opentelemetry/instrumentation-mongoose
does not instrument insertMany
method
#2488
Labels
bug
Something isn't working
pkg:instrumentation-mongoose
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
What version of OpenTelemetry are you using?
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/context-async-hooks": "^1.26.0",
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.53.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.53.0",
"@opentelemetry/instrumentation-mongodb": "^0.47.0",
"@opentelemetry/instrumentation-mongoose": "^0.42.0",
"@opentelemetry/sdk-metrics": "^1.26.0",
"@opentelemetry/sdk-node": "^0.53.0",
"@opentelemetry/sdk-trace-node": "^1.26.0",
What version of Node are you using?
Node 20.18.0
What did you do?
SDK configuration
Mongoose code
What did you expect to see?
insertMany
is instrumented by@opentelemetry/instrumentation-mongoose
.What did you see instead?
@opentelemetry/instrumentation-mongoose
ignoresinsertMany
and instead span is created by@opentelemetry/instrumentation-mongodb
.If
@opentelemetry/instrumentation-mongodb
is not used I don't see any traces frominsertMany
operation.Additional context
I believe some other methods are also not instrumented but I have not encountered them yet.
The text was updated successfully, but these errors were encountered: