-
Notifications
You must be signed in to change notification settings - Fork 916
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
net.sock.host.port
and net.host.port
may be mixed up (at least in Tomcat?)
#9523
Comments
Jetty sometimes gets it right:
And sometimes not:
Liberty instrumentation gets it wrong too:
But the servlet instrumentation on the same web server is correct (it does not report the sock port at all though):
Grizzly being right and wrong:
|
I read the whole extractor/getter code again, ran some extra unit tests both for the extractors and some of the HTTP servers, and I haven't been able to reproduce that locally. I suspect that maybe reusing the request object by the server might introduce this bug, but then again I ran several HTTP servers tests with |
Perhaps this is because |
Does OTel Java agent version-2.0 still emitting these metrics ? |
I think it does but these are now named |
Yes yes, I saw that and commenting if this is issue still valid and need to be modified. |
As described in #9523 (comment) I suspect that this is not an issue at all but rather these attributes get different values in our smoke test suite depending on where the request originates from. |
Hi @trask It seems, no breaking changes are mentioned specifically for |
It is renamed for the attribute |
Yes, @trask Should we close this? Has it happened recently? Seems like keeping it open might encourage folks to just continue asking about "metrics"... |
this was fixed by open-telemetry/semantic-conventions#804 |
Looking at one of the smoke test outputs, it looks like
net.sock.host.port
andnet.host.port
may be mixed up:The text was updated successfully, but these errors were encountered: