You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code is on Django 2.x. And I run into open-telemetry/opentelemetry-python#2833
Debugging down shows that the _is_asgi_request() in otel_middleware.py is thus determining that a request can't be an ASGI request.
Steps to reproduce
Just look at the code. Also when you continue and set is_asgi_request to True manually, my code works as expected
Describe your environment
My code is on Django 2.x. And I run into open-telemetry/opentelemetry-python#2833
Debugging down shows that the
_is_asgi_request()
in otel_middleware.py is thus determining that a request can't be an ASGI request.Steps to reproduce
Just look at the code. Also when you continue and set
is_asgi_request
toTrue
manually, my code works as expectedWhat is the expected behavior?
Just use ASGi and don't run into #2833
What is the actual behavior?
Run into #2833 as even valid ASGi requests are treated like WSGi ones, which then fails.
The text was updated successfully, but these errors were encountered: