---
title: python-agent-130200
source: https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-130200
---

## Notes

This release of the Python agent adds instrumentation support for [Google ADK](https://pypi.org/project/google-adk), adds token counting for multiple AI providers ([Anthropic](https://pypi.org/project/anthropic), [Google GenAI](https://pypi.org/project/google-genai), [OpenAI](https://pypi.org/project/openai), and [AWS Bedrock](https://pypi.org/project/botocore)), reduces outbound `tracestate` header size, and fixes a crash in [graphql-core](https://pypi.org/project/graphql-core) instrumentation.

Install the agent using `easy_install/pip/distribute` via the [Python Package Index](https://pypi.python.org/pypi/newrelic), using `conda` via the [Conda-Forge Package Index](https://anaconda.org/conda-forge/newrelic), or download it directly from the [New Relic download site](https://download.newrelic.com/python_agent/release).

## Improved Features

-   Added instrumentation for Google ADK

    -   The Python agent now instruments [Google ADK](https://pypi.org/project/google-adk) (Agent Development Kit) AI agent workflows.
    -   Instrumented components include:
        -   `LlmAgent` linked to Gemini or VertexAI backends via [`google.genai`](https://pypi.org/project/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

-   Added token counting for Anthropic, Gemini, OpenAI, and Bedrock

    -   The Python agent now reports token counts for all LLM invocations across multiple AI providers:
        -   [Anthropic SDK](https://pypi.org/project/anthropic)
        -   [Google GenAI SDK](https://pypi.org/project/google-genai)
        -   [OpenAI SDK](https://pypi.org/project/openai)
        -   AWS Bedrock via [botocore](https://pypi.org/project/botocore) and [aiobotocore](https://pypi.org/project/aiobotocore)

## Bugs

-   Fixed instrumentation crash for graphql-core v3.2.10

    -   Previously, [graphql-core](https://pypi.org/project/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.

-   Removed `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](https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/) about keeping agents up to date.

See the New Relic Python agent [EOL policy](https://docs.newrelic.com/docs/apm/agents/python-agent/getting-started/python-agent-eol-policy/) for information about agent releases and support dates.
