Skip to content

Commit

Permalink
fix: inverted server.name and url.scheme open telemetry attribute values
Browse files Browse the repository at this point in the history
  • Loading branch information
qwuipss authored Feb 12, 2025
1 parent dbbd3d0 commit c41fba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/httpClient/HttpClientRequestAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ private HttpRequestMessage GetRequestMessageFromRequestInformation(RequestInform
SetBaseUrlForRequestInformation(requestInfo);// this method can also be called from a different context so ensure the baseUrl is added.
activityForAttributes?.SetTag("http.request.method", requestInfo.HttpMethod.ToString());
var requestUri = requestInfo.URI;
activityForAttributes?.SetTag("url.scheme", requestUri.Host);
activityForAttributes?.SetTag("server.address", requestUri.Scheme);
activityForAttributes?.SetTag("url.scheme", requestUri.Scheme);
activityForAttributes?.SetTag("server.address", requestUri.Host);
if(obsOptions.IncludeEUIIAttributes)
activityForAttributes?.SetTag("url.full", requestUri.ToString());
var message = new HttpRequestMessage
Expand Down

0 comments on commit c41fba8

Please sign in to comment.