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