Skip to content

Commit 33e7070

Browse files
committed
Fix format
1 parent 7165cc4 commit 33e7070

File tree

1 file changed

+1
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware

1 file changed

+1
-2
lines changed

instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware/otel_middleware.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from typing import Callable
2121

2222
from django import VERSION as django_version
23-
from django.core.handlers.wsgi import WSGIRequest
2423
from django.http import HttpRequest, HttpResponse
2524

2625
from opentelemetry.context import detach
@@ -182,7 +181,7 @@ def format_request_objects_in_headers(attributes):
182181
new_values = []
183182
for value in value_list:
184183
if hasattr(value, "__class__"):
185-
if isinstance(value, (HttpRequest, WSGIRequest)):
184+
if isinstance(value, HttpRequest):
186185
try:
187186
method = getattr(value, "method", "UNKNOWN")
188187
request_path = getattr(value, "path", "UNKNOWN")

0 commit comments

Comments
 (0)