Python agent API overview

The New Relic Python agent provides a number of different sets of APIs for controlling, customizing, or extending its functionality. Where instrumentation is provided for a specific web framework and you are able to use the admin script to wrap startup of the Python process, you may never have a need to use the agent APIs.

You will, however, need the APIs if you want to do one of the following tasks:

  • Manually integrate the agent into your application
  • Add to the data being collected
  • Instrument additional third party packages or custom Python applications

All publicly available API calls can be found in the newrelic.agent Python module.

The available public APIs include:

For more help

Join the discussion about Python in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at support.newrelic.com.