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 togenerate_content
for single text-only inputs and calls tosend_message
for multi-turn conversations.
- Adds support for google-genai. The agent will automatically instrument
Instrument new AWS Kinesis methods
- Adds botocore instrumentation to support new AWS Kinesis methods including
tag_resource
,untag_resource
, andlist_tags_for_resource
.
- Adds botocore instrumentation to support new AWS Kinesis methods including
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.
Notas
Esta versão do agente Python adiciona suporte ao Google Gemini por meio do SDK generativo do Google IA e instrumenta novos métodos do Kinesis.
Instale o agente usando easy_install/pip/distribute
por meio do Índice de Pacotes Python ou baixe-o diretamente do site de download do New Relic.
Novo recurso
Adicionar suporte ao Google Gemini por meio do SDK generativa do Google IA
- Adiciona suporte para google-GenAI. O agente instrumentará automaticamente
embed_content
chamadas para embeddings síncronos e assíncronos. O agente agora também oferece suporte a gerações de texto síncronas e assíncronas para entradas de texto em casos sem streaming. Isso inclui chamadas feitas paragenerate_content
para entradas de texto único e chamadas parasend_message
para conversas de vários turnos.
- Adiciona suporte para google-GenAI. O agente instrumentará automaticamente
instrumento novos métodos AWS Kinesis
- Adiciona instrumentação botocore para dar suporte a novos métodos do AWS Kinesis, incluindo
tag_resource
,untag_resource
elist_tags_for_resource
.
- Adiciona instrumentação botocore para dar suporte a novos métodos do AWS Kinesis, incluindo
Declaração de apoio
Recomendamos atualizar para a versão mais recente do agente assim que estiver disponível. Se você não puder atualizar para a versão mais recente, atualize seu agente para uma versão com no máximo 90 dias. Saiba mais sobre como manter o agente atualizado.
Consulte a New Relic Python política de fim de vida útil do agente para obter informações sobre lançamentos de agentes e datas de suporte.
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
Add async support for elasticsearch
- Adds support for async elasticsearch. Thanks fagnerzulin for the contribution!
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.
- Previously, when the setting
Fix crash in Kombu when running with Sentry
- Fixes a crash in Kombu instrumentation where a
TypeError
was raised from theinspect
module. This bug was due to a conflict in wrapping between New Relic and Sentry. The Kombu instrumentation has also been re-enabled.
- Fixes a crash in Kombu instrumentation where a
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.
Notas
Esta versão do agente Python adiciona suporte para async elasticsearch, corrige um problema de análise de configuração do graphql, corrige um bug na instrumentação Kombu e reativa a instrumentação Kombu.
Instale o agente usando easy_install/pip/distribute
por meio do Índice de Pacotes Python ou baixe-o diretamente do site de download do New Relic.
Novo recurso
Adicionar suporte assíncrono para elasticsearch
- Adiciona suporte para elasticsearch assíncrono. Obrigado fagnerzulin pela contribuição!
Correções de bugs
Adicionar análise da configuração do graphql
- Anteriormente, quando a configuração
instrumentation.graphql.capture_introspection_queries
era definida no arquivo de configuração, essa configuração não entrava em vigor. Isso foi corrigido.
- Anteriormente, quando a configuração
Corrigir travamento no Kombu ao executar com Sentry
- Corrige uma falha na instrumentação do Kombu onde um
TypeError
era gerado pelo móduloinspect
. Esse bug ocorreu devido a um conflito de encapsulamento entre New Relic e Sentry. A instrumentação Kombu também foi reativada.
- Corrige uma falha na instrumentação do Kombu onde um
Declaração de apoio
Recomendamos atualizar para a versão mais recente do agente assim que estiver disponível. Se você não puder atualizar para a versão mais recente, atualize seu agente para uma versão com no máximo 90 dias. Saiba mais sobre como manter o agente atualizado.
Consulte a New Relic Python política de fim de vida útil do agente para obter informações sobre lançamentos de agentes e datas de suporte.
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 theinspect
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.
- Existing Kombu instrumentation in the agent is crashing with a
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.
Notas
Esta versão do agente Python adiciona nomes de atributos de span de armazenamento de dados compatíveis OpenTelemetry , corrige um bug na instrumentação LangChain e desativa temporariamente a instrumentação Kombu .
Instale o agente usando easy_install/pip/distribute
por meio do Índice de Pacotes Python ou baixe-o diretamente do site de download do New Relic.
Novo recurso
Adicionar armazenamento de dados compatível com OpenTelemetry span atributo
- O atributo de armazenamento de dados span agora é mais consistente com as convenções de nomenclatura do OpenTelemetry
Correções de bugs
Corrigir instrumentação LangChain para tipos de resposta de string
- Anteriormente, quando o LangChain retornava respostas do tipo string, o agente capturava apenas o primeiro caractere da string. Isso foi corrigido.
Desativar instrumentação Kombu
- A instrumentação Kombu existente no agente está travando com um
TypeError
sendo gerado pelo móduloinspect
. Esta instrumentação foi temporariamente desabilitada e será reabilitada em uma versão futura assim que a causa raiz da falha for identificada e corrigida.
- A instrumentação Kombu existente no agente está travando com um
Declaração de apoio
Recomendamos atualizar para a versão mais recente do agente assim que estiver disponível. Se você não puder atualizar para a versão mais recente, atualize seu agente para uma versão com no máximo 90 dias. Saiba mais sobre como manter o agente atualizado.
Consulte a New Relic Python política de fim de vida útil do agente para obter informações sobre lançamentos de agentes e datas de suporte.
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.
Notes
This release of the Python agent adds support for Kombu, mysqlclient, PyMySQL, and adds a few safeguards to prevent exceptions.
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 Kombu
- Add support for producer and consumer message tracing in Kombu.
- In the case where Celery and Kombu are used together, a transaction is produced for both Celery and Kombu message consumption and Kombu consumer tracing is turned off by default. It can be enabled via the
instrumentation.kombu.consumer.enabled
setting. A new settinginstrumentation.kombu.ignored_exchanges
to ignore certain exchanges was also added and by default it ignores the celeryev queue which is a monitoring queue.
Add support for mysqlclient (a MySQLdb fork for Python 3)
- Instrumentation for the Python 2 library MySQLdb has been adapted to support the Python 3 fork mysqlclient.
Update instrumentation for PyMySQL for versions 1.0.3 and above
- Instrumentation for PyMySQL has been updated for newer versions of the library, and versions below 1.0.3 are no longer supported.
Bug fixes
Safeguard startup of agent healthchecks against exceptions
- Previously, the agent healthchecks could raise exceptions during startup, potentially resulting in agent crashes. This has been fixed.
Fix warning message around garbage collection runtime metrics sampler
- Previously, a warning message was sometimes emitted which was related to the garbage collection runtime metrics sampler. This 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.
Notes
This release of the Python agent adds support for asynchronous AWS Bedrock LLM calls in aioboto3, a fix for a segfault with greenlets, a fixed a crash in aiomysql instrumentation, and reformatted the codebase with Ruff.
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 asynchronous AWS Bedrock LLM calls
- Adds instrumentation to support calls to
invoke_model
andinvoke_model_with_response_stream
made on aioboto3 clients
- Adds instrumentation to support calls to
Bug fixes
Fix crash in
aiomysql
instrumentation- Previously, using
aiomysql.sa
(the includedsqlalchemy
engine) with the agent would result in a crash due to a missing__await__
method in the instrumentation. This has been corrected.
- Previously, using
Fix segfaults with greenlets
- Previously, a segfault occured when the maximum number of worker processes were called. This was due to a combination of using a weak reference for the agent's trace ID caching and greenlet's
greenlet.getcurrent()
retrieval function being called after the last greenlet has already been garbage collected. This fix allows the worker process to restart without the segfault occurring.
- Previously, a segfault occured when the maximum number of worker processes were called. This was due to a combination of using a weak reference for the agent's trace ID caching and greenlet's
Changes
Reformatted entire codebase with Ruff
- Switched to Ruff linter and reformatted the entire codebase.
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 entity linking for AWS Kinesis and AWS Firehose in boto3
and botocore
.
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 entity linking attributes for AWS Kinesis and AWS Firehose when using
boto3
andbotocore
.- Adds attributes linking distributed traces with AWS Kinesis and AWS Firehose entities in the New Relic UI.
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.