Project: opencensus-ext-sqlalchemy

OpenCensus SQLAlchemy Integration

Project Details

Latest version
0.1.3
Home Page
https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-sqlalchemy
PyPI Page
https://pypi.org/project/opencensus-ext-sqlalchemy/

Project Popularity

PageRank
0.002715105241403938
Number of downloads
39755

OpenCensus SQLAlchemy Integration

|pypi|

.. |pypi| image:: https://badge.fury.io/py/opencensus-ext-sqlalchemy.svg :target: https://pypi.org/project/opencensus-ext-sqlalchemy/

You can trace usage of the sqlalchemy package_, regardless of the underlying database, by specifying 'sqlalchemy' to trace_integrations.

.. _SQLAlchemy package: https://pypi.org/project/SQLAlchemy

.. note:: If you enable tracing of SQLAlchemy as well as the underlying database driver, you will get duplicate spans. Instead, just trace SQLAlchemy.

Installation

::

pip install opencensus-ext-sqlalchemy

Usage

.. code:: python

from opencensus.trace import config_integration

config_integration.trace_integrations(['sqlalchemy'])

References

  • OpenCensus Project <https://opencensus.io/>_