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

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

Notas

Esta versión del agente Python agrega soporte para nuevas funciones de Redis , convierte todas las rutas internas de os.path a pathlib.Path y corrige un problema con la codificación JSON de PosixPaths.

Instale el agente usando easy_install/pip/distribute a través del Índice de paquetes de Python o descárguelo directamente del sitio de descarga de New Relic.

Nueva característica

  • Agrega soporte para nuevas funciones de Redis

    • Agregar instrumentación para nuevas funciones de Redis .
  • Convierte todas las rutas internas de os.path a pathlib.Path

    • Convierta todo el uso interno de rutas basadas en cadenas y os.path a pathlib.Path en preparación para admitir rutas de Windows.

Corrección de errores

  • Solucionar el problema con la codificación JSON de PosixPath

    • Algunos usuarios estaban experimentando problemas con la configuración de codificación JSON PosixPath . Este problema fue solucionado.

Declaración de apoyo

Recomendamos actualizar a la última versión del agente tan pronto como esté disponible. Si no puede actualizar a la última versión, actualice su agente a una versión que no tenga más de 90 días de antigüedad. Obtenga más información sobre cómo mantener al agente actualizado.

Consulte la New Relic Python política de fin de vida del agente para obtener información sobre los lanzamientos del agente y las fechas de soporte.

July 24
Python agent v10.15.0

Notas

Esta versión del agente Python agrega soporte para oracledb, corrige un error en Kombu y Kafka donde el objeto MessageTransaction no tiene el atributo destination_name y corrige la desaparición de los metadatos de utilización con AWS.

Instale el agente usando easy_install/pip/distribute a través del Índice de paquetes de Python o descárguelo directamente del sitio de descarga de New Relic.

Nueva característica

  • Agrega soporte para oracledb

Corrección de errores

  • Se solucionó el error "El objeto MessageTransaction no tiene el atributo destination_name".

    • Se corrige un error en la instrumentación de MessageBroker donde los métodos serialize buscaban el atributo destination_name en MessageTransaction y no existía.
  • Solucionar el problema de metadatos de utilización de AWS al ejecutar AWS y K8s juntos

    • Debido a la configuración de licencias en el pod K8s que se ejecuta en instancias EC2 AWS, los metadatos de utilización se pueden recuperar la primera vez. Sin embargo, si la aplicación se deja ejecutar continuamente, el agente se volverá a conectar y los metadatos de utilización no podrán cargar. En casos como estos, los metadatos de utilización se almacenan en caché por instancia de agente y se pueden recuperar.

Declaración de apoyo

Recomendamos actualizar a la última versión del agente tan pronto como esté disponible. Si no puede actualizar a la última versión, actualice su agente a una versión que no tenga más de 90 días de antigüedad. Obtenga más información sobre cómo mantener al agente actualizado.

Consulte la New Relic Python política de fin de vida del agente para obtener información sobre los lanzamientos del agente y las fechas de soporte.

June 18
Python agent v10.14.0

Notas

Esta versión del agente de Python agrega compatibilidad con Azure Functions Apps y protobuf v6.

Instale el agente usando easy_install/pip/distribute a través del Índice de paquetes de Python o descárguelo directamente del sitio de descarga de New Relic.

Nueva característica

Corrección de errores

  • Agrega archivos pb2 para habilitar la compatibilidad con protobuf v6

    • Anteriormente, varios paquetes de Google no eran compatibles con New Relic debido a la falta de soporte de protobuf v6. Esto ya fue resuelto.

Declaración de apoyo

Recomendamos actualizar a la última versión del agente tan pronto como esté disponible. Si no puede actualizar a la última versión, actualice su agente a una versión que no tenga más de 90 días de antigüedad. Obtenga más información sobre cómo mantener al agente actualizado.

Consulte la New Relic Python política de fin de vida del agente para obtener información sobre los lanzamientos del agente y las fechas de soporte.

June 9
Python agent v10.13.0

Notas

Esta versión del agente Python agrega soporte para el Model Context Protocol (MCP) y corrige la lógica de importación para importlib.metadata y pkg_resources.

Instale el agente usando easy_install/pip/distribute a través del Índice de paquetes de Python o descárguelo directamente del sitio de descarga de New Relic.

Nueva característica

  • Agregar compatibilidad con el Model Context Protocol (MCP)

    • Agrega soporte para llamadas MCP en mcp y fastmcp. El agente ahora instrumentará automáticamente los siguientes primitivos MCP principales:

      • Herramientas (vía call_tool)
      • Recursos (vía read_resource)
      • Indicaciones (vía get_prompt)

Corrección de errores

  • Corregir la lógica de importación para importlib.metadata y pkg_resources

    • Actualiza la lógica en torno a la importación de importlib.metadata para intentar también emplear el retropuerto importlib_metadata antes de volver a pkg_resources.*. Esto también elimina el uso de condicionales sys.version y corrige problemas donde Python 3.9 solo podía usar pkg_resources a pesar de tener importlib.metadata disponible.

Declaración de apoyo

Recomendamos actualizar a la última versión del agente tan pronto como esté disponible. Si no puede actualizar a la última versión, actualice su agente a una versión que no tenga más de 90 días de antigüedad. Obtenga más información sobre cómo mantener al agente actualizado.

Consulte la New Relic Python política de fin de vida del agente para obtener información sobre los lanzamientos del agente y las fechas de soporte.

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.

Copyright © 2025 New Relic Inc.

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