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
Fix Operation name logging for Netty based applications #2317
Conversation
|
@laurit if I follow your recommandation, all my operations will be « HTTP GET » … so I can let « netty.request » the result is the same. These are more usefull : https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#span |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @laurit correctly noticed, using full URL (even without query string) violates Otel semantic convention and general requirement for low cardinality of the span names.
Hi @neinoi! As appealing as it is to use the path as the span name, it doesn't work well for applications that have an unbounded number of (parameterized) paths. Since the one-size-fits-all span name is not that great (and we all agree that Since you are using Application Insights, if you open an issue in that repo, I can explain the different options for customizing the span name (which are a bit specific to Application Insights, since we don't use the OTel Collector, and our OTel API interoperability is under a preview flag). If you'd like to continue with this PR, changing the span name to |
Hi @trask , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @neinoi!
For the options, is this the good place to go : java-standalone-telemetry-processors ?
Yes, that's a good option. Another option is https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-in-process-agent#override-the-request-telemetry-name-using-the-2x-sdk.
Fix Operation name logging for Netty based applications
(@trask Report of PR #1494 on ApplicationInsights-Java repo)