Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
OpenTelemetry semantic conventions v1.21.0 renamed the http.method attribute to http.request.method, and http.status_code to http.response.status_code. The .NET Aspire dashboard however recognizes only the old names http.method and http.status_code. Now when my service publishes telemetry using the current names http.request.method and http.response.status_code, the .NET Aspire dashboard does not understand that the span is for an HTTP client request, and does not show "HTTP" and the HTTP status code in the friendly summary.
Describe the solution you'd like
Recognize the http.request.method name in addition to http.method.
When a span has the http.request.method attribute, recognize the http.response.status_code name rather than http.status_code.
Additional context
.NET Aspire dashboard code that recognizes only the old names http.method and http.status_code:
https://github.com/dotnet/aspire/blob/d9077f9b8280fc3bde78e3b8862c413f6841af8e/src/Aspire.Dashboard/Otlp/Model/OtlpSpan.cs#L176-L182
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
OpenTelemetry semantic conventions v1.21.0 renamed the
http.methodattribute tohttp.request.method, andhttp.status_codetohttp.response.status_code. The .NET Aspire dashboard however recognizes only the old nameshttp.methodandhttp.status_code. Now when my service publishes telemetry using the current nameshttp.request.methodandhttp.response.status_code, the .NET Aspire dashboard does not understand that the span is for an HTTP client request, and does not show "HTTP" and the HTTP status code in the friendly summary.Describe the solution you'd like
Recognize the
http.request.methodname in addition tohttp.method.When a span has the
http.request.methodattribute, recognize thehttp.response.status_codename rather thanhttp.status_code.Additional context
http.*attributes to align with ECS open-telemetry/opentelemetry-specification#3182 requested the new names.url.*attributes, and improve use of namespacing underhttp.*open-telemetry/opentelemetry-specification#3355http.methodandhttp.status_code.http.request.methodandhttp.response.status_codein metrics. Before that, ASP.NET Core usedmethodandstatus-code.http.request.methodin traces..NET Aspire dashboard code that recognizes only the old names
http.methodandhttp.status_code:https://github.com/dotnet/aspire/blob/d9077f9b8280fc3bde78e3b8862c413f6841af8e/src/Aspire.Dashboard/Otlp/Model/OtlpSpan.cs#L176-L182