opencensus-python icon indicating copy to clipboard operation
opencensus-python copied to clipboard

opencensus-ext-django does not support django 4.1

Open giltal1 opened this issue 2 years ago • 1 comments

Describe your environment. Django = "4.1" opencensus-ext-django = "0.7.6"

Steps to reproduce. Run a normal Django application

What is the expected behavior? Django works normally and opencensus middleware works normally

What is the actual behavior? Middleware fails with the following error, causing the Django app to not work 'OpencensusMiddleware' object has no attribute '_is_coroutine'

Additional context. The init method does not call super() and therefore the middleware fails. please add a call to super()

giltal1 avatar Aug 17 '22 15:08 giltal1

Hi @giltal1 since we are experiencing the same issue and you didn't mention picking it up, I have created the following PR: https://github.com/census-instrumentation/opencensus-python/pull/1159

JeremyVriens avatar Aug 24 '22 14:08 JeremyVriens