-
Notifications
You must be signed in to change notification settings - Fork 544
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
Can't get active span in Express instrumentation. #2617
Comments
I am facing the same issue:
|
Hi @pichlermarc, please guide. Thanks |
This is a known issue due to the express instrumentation not creating proper spans for response handlers and not setting the active span in the context. Relates to
|
Oooph. One thing I considered doing was implement a |
Any solutions for the time being? @raphael-theriault-swi |
Yeah it's not great, but at the moment I don't see a better way to work around this until it's fixed in the instrumentation. |
Thanks a lot, @raphael-theriault-swi |
Hi @ScottChapman, can you explain more about your solution? |
Yea so look here Basically you would just add a property to the That seems to be fine it you are doing manual instrumentation. But I am not sure if you can add a request hook to the instance that is created during auto-instrumentation?? |
In the short term are folks having better success with an express alternative (like fastify or others)? |
I followed the very simple instrumentation instructions:
And in my express code I am trying to get the active span:
But it ends up being null??
The text was updated successfully, but these errors were encountered: