Skip to content

v13.2.0

Latest

Choose a tag to compare

@TimPansino TimPansino released this 06 Jul 21:32
4ee128a

Notes

This release of the Python agent adds instrumentation support for Google ADK, adds token counting for multiple AI providers (Anthropic, Google GenAI, OpenAI, and AWS Bedrock), reduces outbound tracestate header size, and fixes a crash in graphql-core instrumentation.

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.

Improved Features

  • Add instrumentation for Google ADK

    • The Python agent now instruments Google ADK (Agent Development Kit) AI agent workflows.
    • Instrumented components include:
      • LlmAgent linked to Gemini or VertexAI backends via google.genai
      • User-defined FunctionTool instances
      • Sub-agent workflows including child agents and AgentTool instances
      • Multi-agent workflows including the Workflow class and deprecated LoopAgent, ParallelAgent, and SequentialAgent classes
  • Add token counting for Anthropic, Gemini, OpenAI, and Bedrock

Bugs

  • Fix instrumentation crash for graphql-core v3.2.10

    • Previously, graphql-core v3.2.10 renamed the errors attribute to collected_errors in ExecutionContext, causing the agent to crash. This has been fixed, and the agent now works correctly with graphql-core v3.2.10 and later.
  • Remove spanId from outbound tracestate header

    • Previously, the agent included spanId in the outbound tracestate header. Because spanId is already present in the traceparent header, this was unnecessary duplication. The spanId has been removed from tracestate to reduce outbound header size.

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.