-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Discrepancy between OTel semantic conventions and built-in System.Net metrics #97395
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsCurrent implementation of runtime/src/libraries/System.Net.Http/src/System/Net/Http/Metrics/MetricsHandler.cs Line 12 in 55fbb23
has a discrepancy with OpenTelemetry semantic conventions: server.port is required, but it's set only when a port isn't a default one: runtime/src/libraries/System.Net.Http/src/System/Net/Http/Metrics/MetricsHandler.cs Line 195 in 55fbb23
One more thing not related to OTel: the documentation says that
|
There is a note in the dotnet-specific part of spec:
@lmolkova do you happen to remember why did we specify & implement it like this originally? How did we justify that in this case Required doesn't mean always present in open-telemetry/semantic-conventions#283? We can certainly think about making
It's not possible to include |
I'm trying to understand whether it's a gap in OTel SemConv, or it was a miss on the .NET implementation side. |
Triage: we should decide if we want to change the |
the port was changed after .NET metrics were completely frozen (there were some corner cases where we didn't set |
@antonfirsov, regarding your comment here:
I agree it's misleading, but not having it is also misleading:
I think we might have a small problem in otel semconv where we have one attribute for something ambiguous. Let me create a spec issue on it - update open-telemetry/semantic-conventions#686 |
This will result in an |
@antonfirsov makes sense, thank you |
Looks like the Closing this as a dupe of #94829 to continue tracking the default |
Current implementation of
runtime/src/libraries/System.Net.Http/src/System/Net/Http/Metrics/MetricsHandler.cs
Line 12 in 55fbb23
has a discrepancy with OpenTelemetry semantic conventions:
server.port
is required, but it's set only when a port isn't a default one:runtime/src/libraries/System.Net.Http/src/System/Net/Http/Metrics/MetricsHandler.cs
Line 195 in 55fbb23
One more thing not related to OTel: the documentation says that
network.protocol.version
is always present, but it's added only when a response is available. I created a PR to fix the documentation (dotnet/docs#39223), but I'm wondering wether it should be fixed on the implementation side, and the docs are correct.The text was updated successfully, but these errors were encountered: