Azure App Service ModueNotFoundError opencensus

2.3k Views Asked by At

I am trying to use application insights inside of a flask app using:

from opencensus.ext.azure.log_exporter import AzureLogHandler

but the runtime throws the following error:

ModuleNotFoundError: No module named 'opencensus'

However it works perfectly fine locally. I don't have anything to investigate next What should I do now?

1

There are 1 best solutions below

0
On

To add to what Jason shared, please review, https://pypi.org/project/opencensus/ for further troubleshooting of the module including how to export traces.