opentracing-contrib / python-django

OpenTracing instrumentation for the Django framework
BSD 3-Clause "New" or "Revised" License
105 stars 54 forks source link

'OpenTracingMiddleware' object has no attribute 'get_response' #24

Closed ror6ax closed 5 years ago

ror6ax commented 6 years ago

I'm getting an error saying 'OpenTracingMiddleware' object has no attribute 'get_response' after enabling OT middleware.

carlosalberto commented 6 years ago

That's weird. get_response is provided by Django itself to the middleware - and for older version is shouldn't happen, as it is anyway an optional parameter. I will try tomorrow with an older version (tried with 1.10.x here), as I can't reproduce.

Could you provide a small test case and the version of Django you are using? Or are you simply using one of the examples?

carlosalberto commented 5 years ago

Closing this issue for now - feel free to reopen if you think this error is still happening ;)