Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
newrelic / newrelic / hooks / database_pyodbc.py
Size: Mime:
from newrelic.agent import wrap_object, register_database_client

from .database_dbapi2 import ConnectionFactory

def instrument_pyodbc(module):
    register_database_client(module, database_name='ODBC',
            quoting_style='single')

    wrap_object(module, 'connect', ConnectionFactory, (module,))