pypi newrelic 13.4.0
v13.4.0

4 hours ago

Notes

This release of the Python agent adds support for Redis commands introduced in Redis v8.10.0 and redis-py v8.1.0. This release also resolves the issue of missing LlmChatCompletion events in LangChain when using MCP tools.

Install the agent using easy_install/pip/distribute via the Python Package Index, using conda via the Conda-Forge Package Index, or download it directly from the New Relic download site.

New Features

  • Add Redis commands introduced in Redis v8.10.0 and redis-py v8.1.0

    • The Python agent now supports the following recently added commands in Redis:
      • himport_discard_all
      • himport_discard
      • himport_prepare
      • lmovem
      • nrange
      • nrevrange
      • querylabels
      • read
      • sdiffcard
      • sunioncard
      • aliaslist

Bugs

  • Fix missing LlmChatCompletion events in Gemini when using MCP tools

    • Previously, LlmChatCompletionMessages and LlmChatCompletionSummary events were missing in Gemini when using tools in a LangChain agent, if the response format was not the default JSON. This has been resolved.
  • Swap to trace cache ID in LangChain and Agent Framework

    • For context propagation purposes, swap the LangChain and Agent Framework instrumentation to only store the trace cache ID rather than the full trace in a reference attribute. This is to prevent these objects from getting serialized unexpectedly in the case of leaks. The ID is a much smaller object while the trace could contain MBs of data.

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.

Don't miss a new newrelic release

NewReleases is sending notifications on new releases.