Notes
This release of the Python agent adds support for Google Cloud Firestore.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
Enhancements
Add support for Firestore Adds instrumentation support for Google Cloud Firestore.
Add support to Redis Async Adds instrumentation support for Redis' async features. Thanks, ahmedhr and bc291 for your contribution!
Automatic wrapping for async generators Existing tracing decorator APIs now support async generators out of the box.
Bug fixes
- Fixed a crash when consecutive calls to
throw()
on wrapped generators Previously consecutive calls tothrow()
would raise an exception rather than inject the exception into the wrapped generator.
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.
Notes
This release of the Python agent adds support for RedisCluster.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
Enhancements
- Add support for RedisCluster Adds instrumentation support for RedisCluster.
Bug fixes
Resilient Environment Settings Fixed a crash when using generalimport with the agent. Thanks for the contribution, aaeabdo!
Remove deprecated
drop_transaction
calls from agent Thedrop_transaction
function had been removed from the agent but references to it still existed, so this version of the agent removes any remaining calls.Fix logic in serverless distributed tracing to work by default
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.
Notes
This release of the Python agent fixes a bug in package reporting and adds support for redis 4.6.0 and loguru 0.7.0.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
Enhancements
Add support for redis 4.6.0 Adds instrumentation support for new
waitaof
method.Add support for loguru 0.7.0 Adds support for loguru v0.7.0.
Bug fixes
- Fix reporting of locally scoped packages Previously, locally scoped Python packages (such as those installed into user scope) were not reported on agent connect. This has been fixed.
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.
Notes
This release of the Python agent adds support for two new errors inbox features: error fingerprinting and user tracking. It also includes bug fixes.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
New features
- New Errors Inbox features
User tracking: You can now see the number of users impacted by an error group. Identify the end user with the set_user_id method.
Error fingerprinting: Are your error occurrences grouped poorly? Set your own error fingerprint via a callback function.
Bug fixes
Guard GraphQL settings lookup In v8.7.1, a bug was introduced in GraphQL instrumentation when not running within a transaction. This crash has been addressed.
Fix Redis instance information Redis v4.5.2 included a change that broke detection for socket based redis instance information. The agent now correctly detects socket paths again.
Support statement
New Relic recommends that you upgrade the agent regularly and at a minimum every 3 months. As of this release, the oldest supported version is 5.12.0.140. More information can be found in the EOL Policy Page.
Notes
This release of the Python agent adds support for a new config option to capture GraphQL introspection query transactions.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
New features
Add support for a new config option to capture GraphQL introspection query transactions.
Added new config setting instrumentation.graphql.capture_introspection_queries and corresponding environment variable NEW_RELIC_INSTRUMENTATION_GRAPHQL_CAPTURE_INTROSPECTION_QUERIES to control capturing of GraphQL introspection transactions. Defaults to false which retains previous behavior of ignoring transactions with introspection queries.
Bug fixes
Fix introspection query recognition for GraphQL.
Fix introspection query recognition for GraphQL to allow introspection fields to be queried alongside real fields in traces.
Support statement
New Relic recommends that you upgrade the agent regularly and at a minimum every 3 months. As of this release, the oldest supported version is 5.12.0.140. Find more information in the EOL Policy Page.
Notes
This release of the Python agent adds support for batching and compression.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
New features
Add support batching and compression of infinite tracing
Adds configuration options
infinite_tracing.compression
andinfinite_tracing.batching
and sets both to on by default.
Support statement
New Relic recommends that you upgrade the agent regularly and at a minimum every 3 months. As of this release, the oldest supported version is 5.8.0.136. Find more information in the EOL Policy Page.
Notes
This release of the Python agent adds support for elasticsearch 8, redis.asyncio, and exposes apdexPerfZone.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
New features
Add support for eleasicsearch 8 Add instrumentation support for elasticsearch version 8.
Add support for redis v4.4.1 and v4.4.2 Add support for new methods in the latest versions of redis.
Add support for redis.asyncio aioredis is included to redis-py since version 4.2.0rc1 as redis.asyncio. Support this new location. Thank you @pauk-slon for your contribution!
Add apdexPerfZone to web transaction event attribute intrinsics Expose nr.apdexPerfZone as apdexPerfZone in Web transaction event attribute intrinsics.
Support statement
New Relic recommends that you upgrade the agent regularly and at a minimum every 3 months. As of this release, the oldest supported version is 5.6.0.135. More information can be found in the EOL Policy Page.
Notes
This release of the Python agent adds the record_log_event
API and includes some bug fixes.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
New features
Add support for redis v4.3.5 and v4.4.0 methods
New methods added in redis v4.3.5 and v4.4.0 will now be automatically instrumented.
Add record_log_event API
This records a log event that can be viewed and queried in the New Relic UI. See record_log_event for details.
Bug fixes
Fix RuntimeError: dictionary changed size during iteration
Properly guard
trace_cache
fromRuntimeErrors
raised due to concurrent iteration and size changes of theTraceCache
.Fix confluent-kafka producer arguments
Fixes a bug where topic provided as a keyword argument can crash Confluent Kafka producers.
Patch sentry SDK to correct ASGI v2/v3 detection
Patches sentry-sdk to fix a bug that causes incorrect ASGI application version detection with our wrapt function wrappers. To fix this, we now instrument the
_looks_like_asgi3()
function to bind out the wrapped app in sentry in order to unwrap it to be able to detect the proper ASGI version.Fix missing information issue with Celery workers when using MAX_TASKS_PER_CHILD
A bug was introduced in v7.8.0.174 when Celery was run with the
--loglevel=INFO
flag to not report any data after the original worker processes shut down. This has been fixed.Fix support for dynamically generated types in Code Level Metrics
A bug in code level metrics attribute extraction prevented attributes from being applied to types created using the 3 argument type constructor. This has been fixed.
Fix external node properties initialization
A bug caused by uninitialized external node properties when making web requests has been fixed. Thank you @kmorey for your contribution!
Support statement
New Relic recommends that you upgrade the agent regularly and at a minimum every 3 months. As of this release, the oldest supported version is 5.4.1.134. More information can be found in the EOL Policy Page.
Importante
We recommend updating to the latest agent version as soon as it's available. If your organization has established practices that prevent you from upgrading to the latest version, ensure that your agents are regularly updated to a version at most 90 days old. Read more about keeping your agent up to date.
As of this release, the oldest supported version is 5.2.2.130.
Notes
This release of the Python agent increases the custom event limit and includes a bug fix.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
Changes
Increase custom event limit
This agent version increases the default limit of custom events from 1,200 events per minute to 3,600 events per minute. In the scenario that custom events were being limited, this change will allow more custom events to be sent to New Relic. There is also a new configurable maximum limit of 100,000 events per minute. To change the limits, see the docs for event_harvest. To learn more about the change and how to determine if custom events are being dropped, see our Explorers Hub post.
Bug fixes
Fix NewRelicContextFormatter attribute error
A bug was introduced in v8.3.0 that caused an AttributeError when using the NewRelicContextFormatter. This has been corrected in this release version.
Notes
This release of the Python agent adds Python 3.11 support, deprecates the add_custom_parameter(s) API, adds usage metrics for multiple libraries, and includes bug fixes.
Install the agent using easy_install/pip/distribute
via the Python Package Index or download it directly from the New Relic download site.
Deprecations
- add_custom_parameter(s) API is now deprecated The add_custom_parameter(s) API has been renamed to add_custom_attribute(s). A deprecation warning will be emitted when calling add_custom_parameter() from this agent version and higher.
New features
Add support for Python 3.11 The agent now supports applications running in Python 3.11.
Add usage metrics for Kafka clients, Daphne, and Hypercorn The agent now emits a messagebroker metric for Kafka clients and a dispatcher metric for Daphne and Hypercorn. This metric is similar to the framework metric already being emitted for all web frameworks supported by the agent.
Bug fixes
Fix Flask view support for Code Level Metrics The agent was previously reporting the class name for the code.function attribute in the case of Flask method dispatching. This has been corrected to report the instrumented function name.
Fix aioredis version crash A fix has been implemented to address a crash in aioredis in cases where the agent was initialized before importing aioredis on aioredis>=2.0.1.
Support statement
New Relic recommends that you upgrade the agent regularly and at a minimum every 3 months. As of this release, the oldest supported version is 5.2.2.130. More information can be found in the EOL Policy Page.