-
Notifications
You must be signed in to change notification settings - Fork 881
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
Wrong span names for server HTTP spans #391
Comments
In contrast with situations, when there is some middleware that would produce nice span names (such as Spring MVC'c MethodHandlers), the instrumentations of plain servlets or Netty pipelines have only requested URL as a potential source of span names. Should we try to somehow normalise URL to remove potential high cardinality parts of it? E.g. SignalFx uses the following regex for this:
In case of servlets, we can potentially use class name + method name as well. |
I don't think(?) "HTTP $method" violates the spec for server spans:
And in that general section:
I agree that "HTTP $method" is not a terribly helpful grouping for users though Maybe this is a discussion for oteps/specification? |
I think that specification is good enough on this topic. It is our current implementation that is lacking. We have to make more efforts in producing useful span names. Maybe giving a configuration option to choose if application owner wants to use url-based span names? |
Ok, one specific proposal: to change span names for servlet-based http spans to The same can be done for |
There's some related discussion on preferring route over But that discussion doesn't address what to do if there's no route, in which case So "yes" from me to your Yes/No questions above. |
Can be considered as part of #233.
Several auto-instrumentations which create "server http" spans currently use simply "HTTP $method" as span name. This seem to violate the spec. E.g.
Servlet2Advice
andServlet3Advice
The text was updated successfully, but these errors were encountered: