From c758f6794605a5afd59cf1535158036b7746bf4d Mon Sep 17 00:00:00 2001 From: "Shi, Stone" Date: Thu, 25 Jul 2024 15:23:07 +0800 Subject: [PATCH] fix format issue Signed-off-by: Shi, Stone --- .../src/opentelemetry/instrumentation/asgi/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py b/instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py index 9ca4fc8d98..3795fa4b28 100644 --- a/instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-asgi/src/opentelemetry/instrumentation/asgi/__init__.py @@ -354,7 +354,9 @@ def collect_request_attributes( result, path, path, query_string, sem_conv_opt_in_mode ) if http_url: - if _report_old(sem_conv_opt_in_mode) or (sem_conv_opt_in_mode == _HTTPStabilityMode.HTTP_DUP): + if _report_old(sem_conv_opt_in_mode) or ( + sem_conv_opt_in_mode == _HTTPStabilityMode.HTTP_DUP + ): _set_http_url( result, remove_url_credentials(http_url), sem_conv_opt_in_mode )