The integration with MongoDB supports the pymongo library and is specified
to trace_integrations
using 'pymongo'
.
pip install opencensus-ext-pymongo
from opencensus.trace import config_integration
config_integration.trace_integrations(['pymongo'])