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.