pip install opencensus-ext-gevent
As gevent is to date incompatible with the new context variables the OpenCensus gevent helper configures OpenCensus to use a compatible thread based runtime context implementation.
No action apart from installing the package is needed as it listens to events
emitted by gevent once
patching via patch_all is complete.
OpenCensus itself is completely compatible with gevent. Be aware though that not all available OpenCensus integrations are compatible.
You should check this on a case by case basis.