New Relic SDK
Backend & InfraNew Relic Python Agent
Release History
View all versions →v13.5.05 fixes4 featuresThis release adds support for Azure CosmosDB, HTTPX2, and LangChain/LangGraph streaming events. It also includes fixes for package reporting, lookup performance, and MySQL database name reporting.
v13.4.02 fixes1 featureThis release enhances the Python agent with support for new Redis commands and resolves an issue with missing LlmChatCompletion events in LangChain. It also improves context propagation in LangChain and Agent Framework by using trace cache IDs.
v13.3.05 fixes2 featuresThis release adds support for AI Monitoring server-side configuration and context propagation for Bedrock invocations via Agent Framework. It also includes several bug fixes, including addressing issues with LangChain, Wagtail, Kombu, and garbage collection sampling.
v13.2.02 fixes2 featuresThis release introduces instrumentation for Google ADK and adds token counting support for major AI providers (Anthropic, Gemini, OpenAI, Bedrock). It also includes a fix for a crash related to recent graphql-core updates and reduces outbound header size.
v13.1.11 fix1 featureThis release enhances LangChain Chain LLM event tracing by adding model information and resolves a TypeError bug affecting LangGraph streaming instrumentation.
v13.1.03 fixes1 featureThis release introduces instrumentation for new Redis commands and resolves a crash related to LangGraph instrumentation. It also enhances the reporting and logging of harvest limit settings.
v13.0.13 fixesThis release addresses critical bugs related to context propagation in LangChain/LangGraph and fixes issues with recording OpenAI chat completions, especially when streaming via LiteLLM.
v13.0.0Breaking4 fixes6 featuresThis release removes support for Python lambda functions in configuration for security reasons and introduces several new features, including Anthropic and Gemini streaming instrumentation, and default exclusion of the `newrelic` header. Several bugs related to context propagation and reconnect logic have also been fixed.
v12.1.01 fix1 featureThis release introduces time to first token tracking for LLM response streams and resolves a crash-inducing incompatibility with the Flask add_url_rule function signature.
v12.0.0Breaking1 fix4 featuresThis release removes support for CAT and Python 3.8, updates vendored packages, and adds support for free-threaded CPython and Windows environments. It also introduces an optional extra for installing SSL certificates via certifi.
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.
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