• /
  • ログイン
  • 無料アカウント

Instrumented Python packages

This document lists the packages and modules automatically instrumented by the Python agent after you install it. You can also use custom instrumentation if you want to:

  • Disable instrumentation for specific packages or modules if the instrumentation interferes with your app.
  • Instrument a-third party package or module that is not instrumented automatically by the agent.
  • Add more specific instrumentation for your own code, such as to track the time spent in additional functions.

To request built-in instrumentation for additional packages, get support at support.newrelic.com.

Web frameworks

Back-end services

Template rendering

Instance details

The agent collects instance details for a variety of databases and database drivers. The ability to view specific instances and the types of database information depends on your Python agent version.

Python agent version 2.72.0.52 or higher supports the following:

Database

Python package name

Minimum package version

Minimum agent version

PostgreSQL

psycopg2

2.0.14

2.72.0.52

MySQL

MySQLdb

1.2.5

2.74.0.54

Redis

redis

2.6.2

2.74.0.54

Memcached

python-memcached

1.51

2.76.0.55

Elasticsearch

elasticsearch

0.45

2.78.0.56

To request instance-level information from datastores currently not listed for your agent, get support at support.newrelic.com.

SQL database adapters

For Python DB-API 2.0 compliant modules listed in this section, the Python agent supports:

  • Timing of database queries
  • Capturing SQL for the database query
  • Capturing a stack trace for long database queries
  • MySQL and PostgreSQ only: Capturing explain plans for slow database queries

The Python agent should be able to track database queries for any Python DB-API 2.0 compliant modules. However, we only officially supports the modules listed in this section..

For the following database adapters, we provides additional instrumentation for functionality outside of the DB-API 2.0 specification, such as shortcut methods to execute queries without creating cursors:

If your database client module is not listed in this section, get support at support.newrelic.com. New Relic Support may be able to suggest a temporary change to your config file to get it working.

NoSQL database clients

Timing of calls made against NoSQL databases are provided for the following client modules.

Elasticsearch clients

Time spent in calls made to Elasticsearch will be listed in both the main overview chart, as well as in the Databases tab in the UI.

Memcache clients

Timing of memcache requests and capture of type of request is provided for the following memcache client modules.

Solr service clients

Timing of Solr service requests and type of request is provided for the following Solr client modules.

Message broker clients

Timing of message broker transactions is provided for the following modules.

External web services

Timing of external web service requests is carried out via the following modules.

その他のヘルプ

さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:

問題を作成するこのページを編集する
Copyright © 2020 New Relic Inc.