census-instrumentation / opencensus-python

A stats collection and distributed tracing framework
Apache License 2.0
669 stars 250 forks source link

opencensus-ext-django does not support django 4.1 #1154

Open giltal1 opened 2 years ago

giltal1 commented 2 years ago

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()

JeremyVriens commented 2 years ago

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