Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-instrumentation with NODE_OPTIONS results in multiple invocations when running express app? #2621

Open
ScottChapman opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ScottChapman
Copy link

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?

@ScottChapman ScottChapman added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant