-
Notifications
You must be signed in to change notification settings - Fork 182
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
[Http] network.protocol.version
value in case of connection error/no response
#520
Comments
I would also note that the wording sounds confusing in its current form. What does a "protocol client's version" mean?
How can an HTTP client "have a version"? |
Another note:
Strictly speaking, these are two different cases. When a connection is available but the client fails to fetch a valid response (eg. because it's malformed), the protocol version is actually available. Nevertheless, implementations may not be able to report it -- which is the case with .NET because of the way things are layered internally. |
Agree! I think the intention here is to use the HTTP protocol version (when it is available) and NOT the HTTP client version (such as OkHttp client version in Java or so). |
Hi @antonfirsov , @AlexanderWert , @vishweshbankwar do we want to go back to this issue and address the wording there or are we good? It's not clear what should be done. Please let me know. |
There are two points:
|
Related to: #686 |
I believe it's fixed in #817 which clarifies that the attribute captures actual (negotiated version) and should not be set otherwise. |
From Spec: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/http/http-spans.md#common-attributes
What should be behavior in case of requests that does not end up in a connection or response from server. Should instrumentations use the version specified by the client or skip setting the tag on Span/Metric?
The text was updated successfully, but these errors were encountered: