• /
  • EnglishEspañolFrançais日本語한국어Português
  • Inicia sesiónComenzar ahora

Python agent release notesRSS

October 26, 2022
Python agent v8.4.0

Importante

최신 에이전트 버전이 출시되는 즉시 업데이트하는 것을 권장합니다. 조직에서 최신 버전으로 업그레이드하지 못하도록 하는 관행을 시행하고 있는 경우, 에이전트를 최대 90일 이내의 버전으로 정기적으로 업데이트하십시오. 담당 에이전트에게 최신 정보를 제공하는 방법 에 대해 자세히 알아보세요.

이번 릴리스 기준으로 지원되는 가장 오래된 버전은 5.2.2.130입니다.

Notes

이번 파이썬 에이전트 릴리스는 커스텀 대시보드 제한을 늘리고 버그 수정을 포함합니다.

끌어오기 패키지 색인을 통해 easy_install/pip/distribute 사용하여 에이전트를 설치하거나 뉴렐릭 다운로드 사이트 에서 직접 다운로드하세요.

변화

  • 커스텀 대시보드 한도 증가

    이 에이전트 버전은 커스텀 대시보드의 기본 한도를 분당 1,200개의 이벤트에서 분당 3,600개의 이벤트로 늘립니다. 커스텀 대시보드가 제한되는 시나리오에서, 이 변경 사항을 통해 더 많은 커스텀 대시보드를 뉴렐릭으로 보낼 수 있습니다. 또한 분당 100,000개 이벤트라는 설정 가능한 새로운 최대 제한이 있습니다. 제한을 변경하려면 event_harvest 문서를 참조하십시오. 변경 사항 및 커스텀 대시보드가 누락되고 있는지 확인하는 방법에 대해 자세히 알아보려면 Explorers Hub 게시물을 참조하십시오.

버그 수정

  • NewRelicContextFormatter 속성 오류 수정

    v8.3.0에서 NewRelicContextFormatter를 사용할 때 AttributeError를 유발하는 버그가 발생했습니다. 이 문제는 이번 릴리스 버전에서 수정되었습니다.

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, time series, 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

Copyright © 2026 New Relic Inc.

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