Skip to content

v10.7.0

Latest
Compare
Choose a tag to compare
@hmstepanek hmstepanek released this 07 Mar 00:47
eb8d44b

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 and invoke_model_with_response_stream made on aioboto3 clients

Bug fixes

  • Fix crash in aiomysql instrumentation

    • Previously, using aiomysql.sa (the included sqlalchemy engine) with the agent would result in a crash due to a missing __await__ method in the instrumentation. This has been corrected.
  • 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.

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.