This repository provides a basic skeleton for creating instrumentation packages that plug into the Python Agent.
In this example, instrumentation is provided for the sampleproject from pypa.
Loading New Relic python agent extensions relies on the availability of the
iter_entry_points
API in setuptools. Therefore, setuptools must be
available in the application environment.
- Fork this repository, changing the name as appropriate.
- Modify the setup.py
INSTRUMENTED_PACKAGE
variable to point to the package you are instrumenting. - Update the setup.py
HOOKS
variable to add packages and hook functions.
All testing can be done through tox.
pip install tox
tox
In the application, the extension can be pip installed.
pip install newrelic_extension_sampleproject
The contents of this repository are licensed under the terms of the Apache 2.0 License.