Skip to content

Commit 48fc9db

Browse files
author
Ashutosh Goel
committed
Fixing lint errors
1 parent ce2c784 commit 48fc9db

File tree

1 file changed

+2
-6
lines changed
  • instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi

1 file changed

+2
-6
lines changed

instrumentation/opentelemetry-instrumentation-wsgi/src/opentelemetry/instrumentation/wsgi/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ def capture_custom_request_headers(environ, attributes):
224224
WSGI environ and adds it to attributes dictionary to be used as span creation attributes as described
225225
in the specification https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers"""
226226

227-
custom_request_headers = get_custom_headers(
228-
OTEL_CAPTURE_REQUEST_HEADERS
229-
)
227+
custom_request_headers = get_custom_headers(OTEL_CAPTURE_REQUEST_HEADERS)
230228
for header_name in custom_request_headers:
231229
wsgi_env_var = header_name.upper().replace("-", "_")
232230
header_values = environ.get(f"HTTP_{wsgi_env_var}")
@@ -241,9 +239,7 @@ def capture_custom_response_headers(response_headers, span):
241239
WSGI environ and adds them as span attributes as described in the specification
242240
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-request-and-response-headers"""
243241

244-
custom_response_headers = get_custom_headers(
245-
OTEL_CAPTURE_RESPONSE_HEADERS
246-
)
242+
custom_response_headers = get_custom_headers(OTEL_CAPTURE_RESPONSE_HEADERS)
247243

248244
response_headers_dict = {}
249245
if response_headers:

0 commit comments

Comments
 (0)