• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Python agent release notesRSS

September 4
Python agent v10.17.0

Notes

This release of the Python agent adds support for the following:

This release also provides the following fixes:

  • Safeguards for the deepest unique path in GraphQL
  • Safeguards for web URL request parsing
  • Fallback for ElasticSearch and GraphQL when trace.settings==None
  • Remove options method from async ElasticSearch client list

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

  • Adds support for custom tasks in Celery

    • Add monitoring support for custom task classes in Celery. Previously, only tasks using the default task class were able to be monitored. Note: This version of the Python agent will no longer support Celery versions less than v5.2.0.
  • Adds support for Graphene-Django

    • Add monitoring support for synchronous schemas created with Graphene-Django. Previously, schemas created with Graphene-Django would only be partially monitored, resulting in missing GraphQL related attributes.
  • Adds support for middleware filtering in Django

    • Users are now able to filter which Django middleware to monitor. There are now three additional settings:

      • instrumentation.middleware.django.enabled (Default is true)
      • instrumentation.middleware.django.exclude
      • instrumentation.middleware.django.include

    See the Django Middleware Filtering page for more information and examples.

  • Adds support for AWS Bedrock Converse API

    • Add monitoring support for non-streaming Converse API. This includes support for converse chat completion calls made using boto3 and aioboto3 clients.
  • Adds support for W3CTraceParent header sampled flag

    • When an upstream service sends the W3CTraceParent header with the sampling flag set, New Relic will take into account that sampling decision when deciding whether the current transaction will be sampled.
  • Added support for sampling decisions based on whether the remote parent is sampled

    • Added support for two new configuration options:

      • distributed_tracing.sampler.remote_parent_sampled
      • distributed_tracing.sampler.remote_parent_not_sampled
    • default is the default behavior and behaves as it did before this change (it passes the sampling decision to the adaptive sampling algorithm to determine whether the transaction will be sampled).

    • always_on means that the trace that has a remote parent sampled or remote parent not sampled will always be sampled.

    • always_off means that the trace that has a remote parent sampled or remote parent not sampled will never be sampled.

Bug fixes

  • Add safeguard for deepest unique path in GraphQL

    • Some users were experiencing issues with the deepest unique path in GraphQL not being generated due to a field name returning None. This issue has been fixed.
  • Add safeguard for web request parsing

    • Some users experienced a parsing error when request_uri was malformed or contained invalid characters. This can happen at this point if the request_uri in the request header is invalid and does not match the (valid) URL originally given. While this safeguard has now been put in place in New Relic, urllib has resolved this issue for versions of Python released after Jan 31, 2025.
  • Fix crash in ElasticSearch and GraphQL when trace.settings==None

    • In cases where trace.settings is None, the instrumentation for ElasticSearch crashed the application. A global_settings fallback has been put in place. This also resolves the same issue found in GraphQL.
  • Remove options method from async ElasticSearch client list

    • The previous instrumentation of ElasticSearch caused a crash because options was in the list of async methods. This method is no longer wrapped in a DatastoreTrace since it is not one that conducts any datastore operations/requests.

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.

August 14
Python agent v10.16.0

Notes

This release of the Python agent adds support for new Redis functions, convert all internal paths from os.path to pathlib.Path, and fixes an issue with JSON encoding PosixPaths.

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

  • Adds support for new Redis functions

    • Add instrumentation for new Redis functions.
  • Convert all internal paths from os.path to pathlib.Path

    • Convert all internal usage of string based paths and os.path to pathlib.Path in preparation to support Windows paths.

Bug fixes

  • Fix issue with JSON encoding PosixPath

    • Some users were experiencing issues with JSON encoding PosixPath configuration settings. This issue has been fixed.

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.

July 24
Python agent v10.15.0

Notes

This release of the Python agent adds support for oracledb, fixes a bug in Kombu and Kafka where MessageTransaction object has no attribute destination_name, and fixes the disappearance of utilization metadata with AWS.

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

  • Adds support for oracledb

Bug fixes

  • Fix "MessageTransaction object has no attribute destination_name" bug

    • Fix a bug in MessageBroker instrumentations where the serialize methods were looking for the destination_name attribute on the MessageTransaction and it did not exist.
  • Fix AWS utilization metadata issue when running AWS and K8s together

    • Due to permissions settings in K8s pods running on AWS EC2 instances, the utilization metadata is able to be retrieved the first time. However, if the application is left running continuously, the agent will reconnect and the utilization metadata fails to load. In cases like these, the utilization metadata is cached per agent instance and is able to be retrieved.

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.

June 18
Python agent v10.14.0

Notes

This release of the Python agent adds support for Azure Function Apps and protobuf v6.

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

  • Adds support for Azure Function Apps

Bug fixes

  • Adds pb2 files to enable protobuf v6 support

    • Previously, several google packages were not compatible with New Relic due to the lack of protobuf v6 support. This has now been resolved.

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.

June 9
Python agent v10.13.0

Notes

This release of the Python agent adds support for the Model Context Protocol (MCP) and fixes import logic for importlib.metadata and pkg_resources.

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 Model Context Protocol (MCP)

    • Adds support for MCP calls in mcp and fastmcp. The agent will now automatically instrument the following core MCP primitives:
      • Tools (via call_tool)
      • Resources (via read_resource)
      • Prompts (via get_prompt)

Bug fixes

  • Fix import logic for importlib.metadata and pkg_resources

    • Updates logic around import of importlib.metadata to also attempt to use the importlib_metadata backport before falling back to pkg_resources.*. This also removes use of sys.version conditionals and fixes issues where Python 3.9 could only use pkg_resources despite having importlib.metadata available.

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.

May 12
Python agent v10.12.0

Notes

This release of the Python agent adds support for Redis v6.0.0 and fixes conflicts with the opentelemetry-proto package.

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 Redis v6.0.0

    • Adds support for all client methods introduced in Redis v6.0.0.

Bug fixes

  • Fix conflicts with opentelemetry-proto package

    • Fixes an issue where the agent's internal copy of opentelemetry-proto would conflict with any other packages relying on opentelemetry-proto (such as ChromaDB). This should now be treated as a separate package by OpenTelemetry and prevent any conflicts.

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.

May 1
Python agent v10.11.0

Notes

This release of the Python agent adds support for Google Gemini via the Google Generative AI SDK and instruments new Kinesis methods.

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 Google Gemini via Google Generative AI SDK

    • Adds support for google-genai. The agent will automatically instrument embed_content calls for synchronous and asynchronous embeddings. The agent also now supports synchronous and asynchronous text generations for text inputs in non-streaming cases. This includes calls made to generate_content for single text-only inputs and calls to send_message for multi-turn conversations.
  • Instrument new AWS Kinesis methods

    • Adds botocore instrumentation to support new AWS Kinesis methods including tag_resource, untag_resource, and list_tags_for_resource.

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.

April 24
Python agent v10.10.0

Notes

This release of the Python agent adds support for async elasticsearch, fixes a graphql configuration parsing issue, fixes a bug in the Kombu instrumentation and re-enables the Kombu instrumentation.

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

Bug fixes

  • Add parsing of graphql config setting

    • Previously, when the setting instrumentation.graphql.capture_introspection_queries was set in the config file, this setting did not take effect. This has been fixed.
  • Fix crash in Kombu when running with Sentry

    • Fixes a crash in Kombu instrumentation where a TypeError was raised from the inspect module. This bug was due to a conflict in wrapping between New Relic and Sentry. The Kombu instrumentation has also been re-enabled.

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.

April 11
Python agent v10.9.0

Notes

This release of the Python agent adds OpenTelemetry compatible datastore span attribute names, fixes a bug in LangChain instrumentation, and temporarily disables Kombu instrumentation.

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 OpenTelemetry compatible datastore span attributes

    • The datastore span attributes are now more consistent with OpenTelemetry naming conventions

Bug fixes

  • Fix LangChain instrumentation for string response types

    • Previously, when LangChain returned string-type responses, the agent only captured the first character of the string. This has been corrected.
  • Disable Kombu instrumentation

    • Existing Kombu instrumentation in the agent is crashing with a TypeError being raised from the inspect module. This instrumentation has been temporarily disabled and will be re-enabled in a future release once the root cause of the crash is identified and patched.

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.

March 31
Python agent v10.8.1

Notes

This release of the Python agent fixes a bug with the latest Kombu instrumentation.

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 import error in Kombu instrumentation

    • A missing import in Kombu's instrumentation resulted in a crash for those using the instrumentation. This has now been fixed.

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.

Copyright © 2025 New Relic Inc.

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