Notes
This release of the Python agent adds support for nonced content security policies for browser agent injection, adds new wheels for Python 3.12 and musl Linux systems such as Alpine, deprecates the ObjectWrapper and get_browser_timing_footer APIs, fixes a crash with Kafka instrumentation when using distributed tracing, and removes a case sensitive header check in ASGIBrowserMiddleware.
Install the agent using easy_install/pip/distribute via the Python Package Index or download it directly from the New Relic download site.
Deprecations
Deprecated
newrelic.agent.ObjectWrapperAPI- Removes custom
newrelic.agent.ObjectWrapperimplementation and instead creates a pass through towrapt.FunctionWrapper.
- Removes custom
Deprecated
get_browser_timing_footerAPI- Previously
get_browser_timing_footerwas an API that would be used to supply information to the browser agent loaded byget_browser_timing_header. - This step is now included in
get_browser_timing_header, makingget_browser_timing_footerobsolete. This function now returns an empty string to avoid breaking existing applications.
- Previously
New features
Added nonced content security policies (CSPs) for browser agent injection
- The browser agent injection API
get_browser_timing_headerhas a new parameternoncethat takes a cryptographic nonce for use with content security policies. The nonce will be automatically inserted into the generated HTML.
- The browser agent injection API
Added additional wheel options for Python 3.12 and musl Linux
- Added pre-built binary wheel support for Python 3.12 as well as alternative wheels for musl-based Linux operating systems (such as Alpine).
Added
newrelic.agent.CallableObjectProxyto public APIs- Previously
CallableObjectProxywas never exposed for general use with custom instrumentation, but was present in internal modules used by the agent. - This API has been added to
newrelic.agent.CallableObjectProxyfor general use.
- Previously
Bug fixes
Fixed a crash with kafka-python and confluent-kafka when using distributed tracing
- Previously Kafka instrumentation packages would sometimes fail to generate distributed tracing headers and cause a crash. This has been fixed and distributed tracing headers should now generate correctly.
Removed case sensitive header check in
ASGIBrowserMiddleware- The agent previously only supported HTML insertion for headers that were lowercase in ASGI applications. The header check is now case insensitive in compliance with the ASGI specification.
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 Python 3.12 support. It also includes support for sending utilization data for Docker with cgroups v2, adds a new synthetics information header, upgrades the agent's internal wrapt version, and includes a bug fix for structlog.
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 Python 3.12 The agent now supports applications running in Python 3.12.
Add support for Docker cgroups v2 The agent now includes functionality to parse Docker IDs in later versions of Docker using cgroups v2.
Add new synthetics information header The agent now retransmits and processes information contained in a new synthetics header: X-NewRelic-Synthetics-Info.
Changes
- Upgrade internal wrapt to v1.16.0 The agent's internal copy of wrapt has been upgraded to v1.16.0 in conjunction with Python 3.12 support.
Bug fixes
- Fix structlog CallsiteParameter processor bug Call site parameter values in structlog no longer produce incorrect values.
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 a new configuration option that allows users to disable capturing package and version information at agent startup.
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 new configuration option
package_reporting.enabled. This option allows users to disable capturing package and version information at agent startup. On some applications with a high number of packages some users were seeing a spike in CPU usage. Disabling this setting provides a workaround for that issue.
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 regression in package version performance that was introduced in 8.10.1.
Install the agent using easy_install/pip/distribute via the Python Package Index or download it directly from the New Relic download site.
Bug fixes
- Fix package version performance regression Addressed issue that was introduced in 8.10.1 where there is increased CPU usage and time on startup and when using certain libraries at runtime.
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 generator instrumentation issue with Redis and adds caching to package versions to address some performance issues.
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 caching to
get_package_versionto address performance issues
Bug fixes
- Fix generator and async generator instrumentation issue in
Redis.asyncio
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 sklearn and redis.asyncio connections.
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 sklearn The Python agent now supports monitoring for machine learning models created with sklearn. Check out our documentation for details on how to view and query for your prediction events and ML related metrics directly in the New Relic user interface. Machine learning instrumentation will be disabled by default in this release. To enable it, visit our configuration page for further information. This release also introduces two new APIs to support customization of machine learning monitoring: wrap_mlmodel and record_ml_event.
Add instrumentation for
redis.asyncio.ConnectionAdd instrumentation support for connections initiated from theredis.asynciomodule
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 async graphql-core and drops support for graphql-core 2.
Install the agent using easy_install/pip/distribute via the Python Package Index or download it directly from the New Relic download site.
Framework Support
- Drop support for graphql-core 2 Remove support for graphql-core 2.0.
Enhancements
- Add support for async graphql-core Add support for async graphql-core 3.0 and above.
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 structlog and 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.
Enhancements
- Add support for structlog Adds instrumentation support for structlog.
Bug fixes
Fix certificate fallback logic Fixed the fallback logic for the certificate bundle such that it only uses the builtin bundle when both the cafile AND capath are None.
Fix missing database metric Fixed an issue where certain databases were not recording the
Datastore/instance/<db>/<host>/<port>metric and so the database was not showing up in the service map.
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
이번 릴리스의 콘솔 에이전트에서는 MetricNormalizationRules 관련 문제를 해결하고, 패키지 버전 감지에서 DeprecationWarning을 수정하고, 레디스 v5 에 도입된 새로운 명령에 대한 지원을 추가합니다.
끌어오기 패키지 색인을 통해 easy_install/pip/distribute 사용하여 에이전트를 설치하거나 뉴렐릭 다운로드 사이트 에서 직접 다운로드하세요.
개선 사항
- 레디스 v5에 도입된 새로운 명령에 대한 지원 추가 레디스 v5 에 대한 전체 측정, 로그 지원을 추가합니다.
버그 수정
MetricNormalizationRules에서 충돌을 수정했습니다 클라이언트 측 MetricNormalizationRules를 사용하여 NerdGraph를 통해 설정하고 기능 플래그에서 사용 가능한 메트릭을 무시할 때 발생하는 충돌을 수정했습니다. 이제 지표는 제대로 무시되어야 합니다.
3.10+에서 패키지 버전 감지 시 DeprecationWarning 수정 3.10+에서 내부적으로 사용되는 패키지 버전 감지에서 발생하는 DeprecationWarning을 수정했습니다. importlib.metadata를 사용할 수 있는 경우, 모듈에서 더 이상 사용되지 않는 버전 속성을 확인하지 않으려면 importlib.metadata를 사용하는 것이 좋습니다. (기여해 주신 @renanivo에게 감사드립니다!)
지지 성명
최신 에이전트 버전이 출시되면 즉시 업데이트하는 것이 좋습니다. 최신 버전으로 업그레이드할 수 없는 경우, 에이전트를 90일 이내 버전으로 업데이트하세요. 에이전트에게 최신 정보를 제공하는 방법에 대해 자세히 알아보세요.
에이전트 릴리스 및 지원 날짜에 대한 정보는 뉴렐릭 끌어 당기는 에이전트 EOL 정책을 참조하세요.