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

Setting HTTP_ROUTE inconsistent accross HTTP server frameworks #1381

Open
Flarna opened this issue Feb 8, 2023 · 6 comments
Open

Setting HTTP_ROUTE inconsistent accross HTTP server frameworks #1381

Flarna opened this issue Feb 8, 2023 · 6 comments
Labels
bug Something isn't working never-stale priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization up-for-grabs Good for taking. Extra help will be provided by maintainers

Comments

@Flarna
Copy link
Member

Flarna commented Feb 8, 2023

HTTP_ROUTE propagation from HTTP server frameworks to HTTP span is inconsistent:

  • connect updates only the span name
  • express, koa and restify update the span name and return the route via rpcData where Http instrumentation pickes it up
  • hapi and fastify update the span name and additionally set HTTP_ROUTE directly on HTTP span

I think all frameworks should avoid modifications of the HTTP span directly instead return the route info via rpcData and leave it up to the HTTP instrumentation to build the final span name and set the HTTP_ROUTE attribute.

Setting HTTP_ROUTE directly breaks for example the assumption done in this PR.

@Flarna Flarna added the bug Something isn't working label Feb 8, 2023
@dyladan dyladan added priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization up-for-grabs Good for taking. Extra help will be provided by maintainers labels Feb 8, 2023
@github-actions
Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@chigia001
Copy link
Contributor

chigia001 commented Jun 14, 2023

Hey @Flarna, not sure if I can pick this task?

When working on this, should we split it into multiple PR for each framework?

@Flarna
Copy link
Member Author

Flarna commented Jun 14, 2023

Sure, feel free to start. I haven't found time to start.

I would start a PR for one framework and once the way how to do it is agree do the remaining ones.

@JamieDanielson
Copy link
Member

We've merged in the change for Express but it looks like there were some unexpected issues that came up. Let's double check these other PRs for Restify, Fastify, Hapi, and Koa to see if we can update those before they are merged in if they have the same problem.

@chigia001
Copy link
Contributor

chigia001 commented Aug 3, 2023

@JamieDanielson Yes, I double check and koa seem to have the same issue

I just push a fix for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working never-stale priority:p4 Bugs and spec inconsistencies which do not fall into a higher prioritization up-for-grabs Good for taking. Extra help will be provided by maintainers
Projects
None yet
Development

No branches or pull requests

4 participants