• English日本語한국어
  • Log inStart now

Python agent release notesRSS

October 24, 2022
Python agent v8.3.0

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.

October 10, 2022
Python agent v8.2.1

Notes

This release of the Python agent provides numerous bug fixes, including several community contributions, provides updates to Sanic instrumentation, Protobuf v4 compatiblity, and updates internal packages for Python 3.11 support.

Install the agent using easy_install/pip/distribute via the Python Package Index or download it directly from the New Relic download site.

Version numbering change

The version number of the agent did not previously follow Semantic Versioning properly. This has been changed. Going forward build numbers have been removed from the version number, and version increments will follow semantic versioning fully. No retroactive changes will be made to previous version numbers.

Instrumentation updates

  • Update Sanic middleware support

    Sanic recently changed their APIs surrounding middleware, and instrumentation has been updated to support it.

Package updates

  • Update wrapt to v1.14.1

    The internal copy of the wrapt library used by the agent has been updated to v1.14.1 for Python 3.11 compatibility.

  • Add support for Protobuf v4

    The agent is now fully compatible with Protobuf v4 when using Infinite Tracing. Backwards compatibility with Protobuf v3 has been preserved.

Bug fixes

  • Fix a RuntimeError in the trace cache when using the coroutine profiler

    A RuntimeError occurred if traces were started or stopped while the coroutine profiler was sampling the active traces. This should no longer be possible.

    Thank you @lovmat for your contribution!

  • Fix an issue with case sensitivity in record-deploy

    Previously application names were incorrectly being treated as case-sensitive when running newrelic-admin record-deploy.

    Thank you @michalborkowski96 for your contribution!

  • Fix an issue with newer installers failing to install the agent

    Due to the inclusion of both scripts and entry_points configuration options, the agent would fail to install with newer installers. This has been corrected and newer PEP compliant installers should have no trouble installing the agent.

    Thank you @admp-fh for your contribution!

  • Fix instrumentation for aioredis interfering with transactions

    The agent does not currently support transactions for Redis clients, and previous instrumentation broke transaction functionality in AioRedis. This has been fixed to provide no instrumentation within transactions at this time.

  • Fix a crash when completing various kinds of traces inside a stopped transaction

    Previously certain types of traces could throw exceptions and fail to complete when inside stopped transactions. This has been corrected and should no longer be possible.

  • Fix a bug where instrumentation caused certain arguments to confluent-kafka producers to stop working

    Previously callback and on_delivery arguments were passed through improperly leading to them not working as expected.

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.

September 27, 2022
Python agent v8.2.0.181

Notes

This release of the Python agent adds automatic instrumentation for Kafka Python as well as Confluent Kafka.

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 kafka-python instrumentation

    Instrumentation has been added for Kafka Python.

  • Add confluent-kafka instrumentation

    Instrumentation has been added for Confluent Kafka.

More information can be found in the Message Queue documentation

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.0.127. More information can be found in the EOL Policy Page.

September 12, 2022
Python agent v8.1.0.180

Notes

This release of the Python agent adds automatic instrumentation for Hypercorn, and includes bug fixes for Sanic v21.9+, memory sampler reporting, and database traces.

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 Hypercorn instrumentation

    Instrumentation has been added for Hypercorn, an ASGI web server.

Bug fixes

  • Fix instrumentation for Sanic v21.9+

    Instrumentation for newer versions of Sanic (>=21.9) have either not reported data or crashed due to an incompatibility with Sanic's internal metaprogramming.

  • Fix incorrect PID reported by memory sampler

    The PID reported by the memory sampler when sampling processes was incorrectly attributed to the process the agent was initialized from.

  • Fix issue with database traces causing crashes

    In rare instances a database trace could result in a setting not being found, causing a crash.

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.0.127.

August 15, 2022
Python agent v8.0.0.179

Notes

This release of the Python agent removes support for Python 3.6. It also includes new instrumentation for Daphne, reporting installed module versions, and a fix for a bug affecting Loguru file paths.

Install the agent using easy_install/pip/distribute via the Python Package Index or download it directly from the New Relic download site.

Deprecations

  • Removed support for Python 3.6

    Python 3.6 is no longer supported by the agent. Please consider upgrading your application to a supported version of Python in order to continue to receive updates to the Python Agent.

New features

  • Add Daphne instrumentation

    Instrumentation has been added for Daphne, a Django project ASGI web server and the recommended server for Django Channels.

  • Add module version reporting

    Installed python packages now have their versions reported and are visible in the Environment tab for your application in New Relic One.

Bug fixes

  • Fix a bug in file path detection for Loguru

    Wrappers from the agent interfered with Loguru file path detection for templating messages. This has been corrected on all versions. Thank you to @rafaelclp 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.0.2.126.

July 21, 2022
Python agent v7.16.0.178

Notes

This release of the Python agent enables log forwarding to New Relic by default. It also addresses a bug related to compressed bytes calculations and adds a new top level data usage supportability metric to the agent.

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 APM logs in context

    Automatic application log forwarding is now enabled by default. This version of the agent will automatically send enriched application logs to New Relic. To learn more about about this feature, see the APM logs in context documentation. For additional configuration options, see the Python logs in context documentation. To learn about how to toggle log ingestion on or off by account, see our documentation to disable automatic logging via the UI or API.

  • Add top level aggregated data usage supportability metric

    The agent now reports a top level data usage supportability metric: Supportability/Python/Collector/Output/Bytes. This aggregates all uncompressed bytes across all agent methods sent to New Relic.

Changes

  • Change data usage supportability metric name

    Previously, the agent reported data usage supportability metrics in the format Supportability/Python/Collector/Output/Bytes/<agent_method>. This has been changed to be in the format Supportability/Python/Collector/<agent_method>/Output/Bytes to align with the agent specification.

Bug fixes

  • Fix data usage supportability metric compression payload calculation

    Previously, the agent was reporting the compressed bytes for the Supportability/Python/Collector/Output/Bytes metric group and uncompressed bytes for the Supportability/Python/Collector/ZLIB/Bytes metric group. This was incorrect and has been fixed in this release.

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.0.0.124.

June 27, 2022
Python agent v7.14.0.177

Notes

This release of the Python agent adds support for aioredis, enhances support for redis and aredis, and fixes a deprecation.

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 aioredis

    The agent will now automatically instrument and send metrics for applications using the Redis and StrictRedis clients for aioredis.

Improvements

  • Enhance support for redis and aredis

    The agent now instruments a more extensive list of commands for redis and aredis clients. This includes commands under the search, graph, timeseries, json, sentinel, and bf modules.

Bug Fixes

  • Fix threading.currentThread deprecation

    threading.currentThread was deprecated in Python 3.10 and has been replaced with threading.current_thread. Thank you hugovk for your contribution to the agent!

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.0.0.124.

June 9, 2022
Python agent v7.12.0.176

Notes

This release of the Python agent adds APM logs in context. Additionally this release fixes issues in Starlette and gRPC version compatibility, renames whitelist settings, and removes unwanted error logs.

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 APM logs in context

    A quick way to view logs no matter where you are in the platform.

    To learn more, see the documentation about APM logs in context.

    • Add support for logging metrics

      Logging metrics show the rate of log messages by severity in the logs chart in the APM Summary view. This is enabled by default in this release.

    • Add support for forwarding application logs to New Relic

      This automatically sends application logs that have been enriched to power APM logs in context. This is disabled by default in this release. This will be on by default in a future release. For more information, see our documentation about logs in context for Python.

    • Add support for enriching application logs written to disk or standard out

      This can be used with another log forwarder to power APM logs in context if in-agent log forwarding is not desired. We recommend enabling either log forwarding or local log decorating, but not both features. This is disabled by default in this release.

Changes

  • Rename Whitelist Setting to Allowlist

    The setting strip_exception_messages.whitelist has been renamed to the more modern name strip_exception_messages.allowlist. The original setting will continue to function but issue a deprecation warning.

Bug Fixes

  • Fix incompatibility with gRPC v4

    Previously a crash was possible in the agent when gRPC v4 was installed when not using the infinite tracing feature. This has been corrected and the agent can safely be used with gRPC v4.

  • Fix Starlette v0.19.1+ instrumentation

    • A crash in CustomRoutes in Starlette v0.19.1 has been addressed and fixed.
    • Starlette v0.20.1 reorganized important files which were then uninstrumented. This has been fixed.
  • Fix unhelpful error messages appearing outside of debug logs

    Error messages related to context propagation have been demoted to debug logs to avoid unwanted and unhelpful messages appearing in logs.

April 6, 2022
Python agent v7.10.0.175

Notes

This release of the Python agent adds CodeStream integration support which includes code level metrics.

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 integration with CodeStream Now Introducing Code-Level Metrics! Golden Signals visible in your IDE through New Relic CodeStream. Learn more here. For any issues or direct feedback, please reach out to support@codestream.com

March 31, 2022
Python agent v7.8.0.174

Notes

This release of the Python agent adds support for GraphQL Server, adds a log handler which forwards logs to the New Relic API, and increases functionality to notice_error.

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 GraphQL Server The agent will now automatically instrument and send metrics for applications using the GraphQL Server.

  • Add a Log Handler The agent is now able to forward logs to the New Relic API. Thank you to iamr0b0tx for your contribution!

Changes

  • More Robust should_ignore_error calls Pass references to settings where possible to should_ignore_error and makes custom _nr_ignored logic more defined and incorporated into notice_error.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.