New Relic SDK
Backend & InfraNew Relic Python Agent
Release History
v11.5.02 fixes5 featuresThis release introduces Hybrid Agent tracing support for OpenTelemetry compatibility and adds a new Trace ID Ratio sampler. It also includes bug fixes for ImportHookFinder duplication and OracleDB callproc instrumentation.
v11.4.01 featureThis release introduces support for LangGraph agents by adding instrumentation for their invocation methods within LangChain. Users are encouraged to keep their agents updated for the best support.
v11.3.01 fix3 featuresThis release introduces enhanced error reporting via notice_error(), adds support for newer OpenAI models like gpt-5, and integrates error capturing for Strands-Agent synchronous tools. It also resolves a crash related to Azure Functions utilization detection.
v11.2.01 fix6 featuresThis release introduces significant new instrumentation support for Strands, AWS Bedrock Converse Streaming, and Redis methods, alongside an important bug fix for ASGI header reporting.
v11.1.01 fix1 featureThis release introduces official support for Python 3.12 and resolves a bug related to handling non-ASCII characters in HTTP headers.
v11.0.11 fix1 featureThis release introduces official support for Python 3.12 and resolves a bug related to handling non-ASCII characters in HTTP headers.
v11.0.0This version of the agent has been yanked due to an unspecified issue.
v10.17.03 fixes1 featureThis release introduces official support for Python 3.12 and resolves critical bugs related to environment variable loading in AWS Lambda and transaction reporting in async frameworks.
v10.16.01 fix1 featureThis release introduces official support for Python 3.12 and resolves a bug related to handling non-ASCII characters in HTTP headers.
v10.15.01 fix1 featureThis release introduces official support for Python 3.12 and resolves a bug related to handling non-ASCII characters in HTTP headers.
v10.14.02 fixes1 featureThis release introduces official support for Python 3.12 environments and includes fixes for issues related to header processing and memory metric reporting.
v10.13.01 fix1 featureThis release introduces official support for Python 3.12 and resolves an initialization failure related to an empty license key environment variable.
v10.12.02 fixes1 featureVersion 10.12.0 introduces official support for Python 3.12 and resolves several stability issues related to header processing and memory reporting.
v10.11.01 fix1 featureThis release introduces official support for Python 3.12 and resolves a bug related to handling non-ASCII characters in HTTP headers. Support for Python versions older than 3.8 has been removed.
v10.10.02 fixes1 featureThis release introduces official support for Python 3.12 and includes fixes for crashes related to large JSON payloads and inaccurate memory reporting on specific Linux systems.
v10.9.01 fix1 featureThis release introduces official support for Python 3.12 and resolves a bug related to handling non-ASCII characters in HTTP headers.
v10.8.13 fixes1 featureThis release introduces official support for Python 3.12 and resolves critical bugs related to transaction tracing and high CPU usage in asyncio environments.
v10.8.01 fix1 featureNew Relic Python Agent version 10.0.800 adds official support for Python 3.12 and resolves a bug related to handling non-ASCII characters in HTTP headers.
v10.7.02 fixes2 featuresVersion 10.0.700 introduces official support for Python 3.12 and OpenTelemetry SDK 1.23.0, alongside fixes for environment variable decoding and older urllib3 compatibility issues.
v10.6.02 fixes2 featuresThis release introduces official support for Python 3.12 and OpenTelemetry SDK 1.23.0, alongside fixes for transaction API usage and CPU metric reporting.
v10.5.01 fix1 featureVersion 10.0.500 of the New Relic Python Agent introduces official support for Python 3.12 and resolves a crash related to non-ASCII HTTP headers.
Common Errors
BrokenPipeError1 reportBrokenPipeError usually arises when attempting to write to a connection that has already been closed by the other end, often occurring during WSGI application iteration. To resolve this, ensure the iterator returned by the WSGI application does not close prematurely, particularly when handling long-lived connections like WebSockets, by properly managing the generator's lifecycle. Verify that the WSGI server correctly manages the connection, preventing unexpected closures before the application completes its response.
TypeError1 reportThe "TypeError" within the `inspect` module in new-relic-sdk often arises from conflicting or outdated dependencies, especially those implicitly managed by the SDK or its interaction with the application's environment. Try upgrading `wrapt` library to the latest version, and explicitly declare all other dependencies used. If upgrading doesn't work, consider downgrading to a known stable SDK version before the introduction of the error with version 10.8.1.
Related Backend & Infra Packages
Production-Grade Container Scheduling and Management
Node.js JavaScript runtime ✨🐢🚀✨
Promise based HTTP client for the browser and node.js
A modern runtime for JavaScript and TypeScript.
Deliver web apps with confidence 🚀
Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
Subscribe to Updates
Get notified when new versions are released