Notes
This release of the Python agent adds trace/span support for Hybrid Agent, New Relic's integration with OpenTelemetry. It also adds entity GUIDs to Agent Control health check files, subcomponent attributes to agentic AI instrumentation, support for new Redis client methods, fixes a bug where there may be duplicate ImportHookFinder instances and a bug in OracleDB Cursor.callproc() instrumentation.
Install the agent using easy_install/pip/distribute via the Python Package Index, using conda via the Conda-Forge Package Index, or download it directly from the New Relic download site.
Features
-
Add Hybrid Agent tracing support
- Hybrid Agent is designed to bridge the gap for teams looking to adopt OpenTelemetry standards while maintaining backwards compatibility with their existing New Relic dashboards. Hybrid Agent offers a "best-of-both-worlds" experience by combining New Relic’s deep visibility with OpenTelemetry API compatibility. It provides an observability solution with integrated support for the following OpenTelemetry APIs:
- Tracing
- Standalone library and native framework instrumentation
- Key enhancements like Span Links and Events on Spans are now available, ensuring seamless interoperability in mixed-mode environments.
- Hybrid Agent is designed to bridge the gap for teams looking to adopt OpenTelemetry standards while maintaining backwards compatibility with their existing New Relic dashboards. Hybrid Agent offers a "best-of-both-worlds" experience by combining New Relic’s deep visibility with OpenTelemetry API compatibility. It provides an observability solution with integrated support for the following OpenTelemetry APIs:
-
Introduces a new Trace ID Ratio based sampler
- A new Trace ID Ratio based sampler. This sampling algorithm is based off the sampler of the same name from OpenTelemetry, and can be configured to sample a set percentage of transactions.
-
Add
subcomponentattributes to agentic AI instrumentation -
Add entity GUID to Agent Control health check files
- When the agent is started within an Agent Control environment, a health check file is created at the configured file location for every agent process. This file now includes the GUID of the entity related to the agent when available.
-
Add instrumentation for new Redis methods
- Add instrumentation for the following methods new methods on Redis clients:
- hotkeys_get
- hotkeys_reset
- hotkeys_start
- hotkeys_stop
- vrange
- xcfgset
- Add instrumentation for the following methods new methods on Redis clients:
Bugs
-
Fix duplicate ImportHookFinder instances
- Previously it was possible for duplicates of the import hook finder to be added to
sys.meta_path.
- Previously it was possible for duplicates of the import hook finder to be added to
-
Fix incorrect signature on OracleDB
Cursor.callproc()- Previously attempting to use keyword arguments with
Cursor.callproc()would cause crashes as the argument names were incorrect in our instrumentation. This has been fixed, and the additional argumentkeyword_parametersis now also supported.
- Previously attempting to use keyword arguments with
Support statement
We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date.
See the New Relic Python agent EOL policy for information about agent releases and support dates.