auto-instrumentation with NODE_OPTIONS results in multiple invocations when running express app? #2621
Labels
bug
Something isn't working
needs:author-response
pkg:auto-instrumentations-node
pkg:instrumentation-express
triage
I noticed that if I am running a NodeJS Express app but try to leverage the auto-instrumentation by specifying the register mechanism via the NODE_OPTIONS I will see what appears to be multiple automatic instrumentation registrations -
OpenTelemetry automatic instrumentation started successfully
appears twice for example.I'm guessing this is just a result of how Express starts a worker? But I also wonder if it is related to some of the issues around express and context related to spans?
This may actually be the right behavior for it to work properly and that trying to do a single registration for Express instrumentation is what leads to the context problems?
The text was updated successfully, but these errors were encountered: