OpenCensus PostgreSQL集成
opencensus-ext-postgresql的Python项目详细描述
与postgresql的集成支持psycopg2库,并被指定 使用'postgresql'来trace_integrations。
安装
pip install opencensus-ext-postgresql
用法
fromopencensus.traceimportconfig_integrationconfig_integration.trace_integrations(['postgresql'])