From 7af35919487000596cb7112632b3ceb62d98b5c5 Mon Sep 17 00:00:00 2001 From: "Timothy Mothra Lee (from Dev Box)" Date: Mon, 25 Nov 2024 13:32:39 -0800 Subject: [PATCH] fix line endings --- .../Implementation/HttpHandlerDiagnosticListener.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs index 8a3ed87810..ff2e971456 100644 --- a/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs +++ b/src/OpenTelemetry.Instrumentation.Http/Implementation/HttpHandlerDiagnosticListener.cs @@ -142,12 +142,12 @@ public void OnStartActivity(Activity activity, object? payload) // see the spec https://github.com/open-telemetry/semantic-conventions/blob/v1.23.0/docs/http/http-spans.md HttpTagHelper.RequestDataHelper.SetHttpMethodTag(activity, request.Method.Method); - if (request.RequestUri != null) - { - activity.SetTag(SemanticConventions.AttributeServerAddress, request.RequestUri.Host); - activity.SetTag(SemanticConventions.AttributeServerPort, request.RequestUri.Port); - activity.SetTag(SemanticConventions.AttributeUrlFull, HttpTagHelper.GetUriTagValueFromRequestUri(request.RequestUri, this.options.DisableUrlQueryRedaction)); - } + if (request.RequestUri != null) + { + activity.SetTag(SemanticConventions.AttributeServerAddress, request.RequestUri.Host); + activity.SetTag(SemanticConventions.AttributeServerPort, request.RequestUri.Port); + activity.SetTag(SemanticConventions.AttributeUrlFull, HttpTagHelper.GetUriTagValueFromRequestUri(request.RequestUri, this.options.DisableUrlQueryRedaction)); + } } try