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.
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.
Notes
This release of the Python agent adds Agent Control health reporting, instrumentation for cassandra-driver, support for new a langchain vectorstore, improves NewRelicContextFormatter
stack traces logging, fixes compatibility issues with the structlog ProcessorFormatter
, and checks for ExceptionMiddleware
removal in starlette.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 Agent Control health reporting
- Adds agent health reporting capability to support the upcoming release of New Relic Fleet Control.
Add support for cassandra-driver
- Instrumentation support was added for cassandra-driver.
Add support for new langchain vectorstore
- Adds instrumentation for
TablestoreVectorStore
in langchain.
- Adds instrumentation for
Enhance stack traces logged by
NewRelicContextFormatter
- The
NewRelicContextFormatter
now reports exception causes when logging stack traces. Thanks @sweco for your contribution!
- The
Bug fixes
Fix compatibility issues with structlog's
ProcessorFormatter
- Fix was added for the case where the structlog
ProcessorFormatter
is used as alogging.Formatter
for both logging and structlog log entries.
- Fix was added for the case where the structlog
Check for
ExceptionMiddleware
removal instarlette.exceptions
- After starlette v0.45.0 the import proxy for ExceptionMiddleware was removed from starlette.exceptions (and now only resides in starlette.middleware.exceptions).
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 async PyMongo, Motor, aiomysql, a new AWS account ID configuration setting, linking AWS entities for DynamoDB and Lambda, and fixes a path typing issue in newrelic.initialize()
.
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 async PyMongo
- Instrumentation support was added for asynchronous PyMongo. Note that this API is currently in beta and may be subject to future breaking changes, which may affect instrumentation.
Add support for Motor
- Instrumentation support was added for motor.
Add support for aiomysql
- Add support for aiomysql.
Add new AWS account ID configuration setting
- Some AWS instrumentations are not able to automatically determine the AWS account ID which is used to link the AWS entity in the service map. When
cloud.aws.account_id
is set, it will be used in certain AWS instrumentations such as DynamoDB to link the DynamoDB AWS entity in the service map.
- Some AWS instrumentations are not able to automatically determine the AWS account ID which is used to link the AWS entity in the service map. When
Link AWS entity for DynamoDB
- Add linking to the AWS entity in the service map for DynamoDB. This linking is done by utilizing the
cloud.aws.account_id
configuration setting.
- Add linking to the AWS entity in the service map for DynamoDB. This linking is done by utilizing the
Link AWS entity for Lambda
- Add linking to the AWS entity in the service map for Lambda. This linking is done by attaching the ARN to the lambda call's span.
Bug fixes
Fix path typing issue in
newrelic.initialize()
- Fixes a bug in
newrelic.initialize()
where pathlike objects were not accepted. This has been corrected to support strings, bytes, or PathLike objects.
- Fixes a bug in
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 fixes a bug in the package version collector that disabled telemetry from being sent to New Relic in certain cases.
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 agent crash when uploading package version info
- Previously, if package versioning was a class property then the function itself was sent with the payload. This would then display the
__repr__()
of the versioning class in the environment stats. In v10.3.0, this task was tweaked and moved to the harvest cycle that caused a failure during the payload conversion to JSON and disabled the telemetry transmission. This release introduces logic to exclude invalid data types from the module payload.
- Previously, if package versioning was a class property then the function itself was sent with the payload. This would then display the
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.