Skip to content

Google ADK 2.x installation conflicts and modular tracing setup fails #269

Closed

Description

@jabrailkhalil

Affected package

traceai-google-adk 0.1.5, main at 54421a6.

What happened?

The current adapter cannot be installed normally alongside Google ADK 2.7.1: the adapter requires google-genai>=1,<2, while ADK requires google-genai>=2.12.1,<3.

pip install traceai-google-adk "google-adk==2.7.1"
# ResolutionImpossible: conflicting google-genai requirements

This already affects Agent Learning Kit's hosted image, which installs the adapter with --no-deps; its dependency note describes the conflict.

There is also a runtime incompatibility with ADK 2.12.0 when dependencies are supplied: GoogleADKInstrumentor().instrument(tracer_provider=provider) raises:

AttributeError: module 'google.adk.flows.llm_flows.base_llm_flow' has no attribute 'trace_call_llm'

ADK's modular flow layout captures model tracing in flows.llm_flows.core._model_call, and parallel-call tracing in flows.llm_flows.tools._batch_executor. Patching the former locations misses those bindings. New SDK tracing also uses start_span(), so passthrough must not return the outer recording span to a caller that will end it.

Expected behavior

Resolve compatible GenAI 1.x/2.x dependencies normally, instrument the actual model/parallel-tool bindings, preserve one coherent trace and restore the original methods/tracers when uninstrumenting.

I have a scoped patch with a real offline model/tool pipeline, parallel-call and model-error cases, token/span checks, exact binding restoration and span-ownership controls. It makes no provider calls and needs no API key.

Implementation and regression tests written with an OpenAI assistant under my supervision.

Activity

  1. nik13 commented on Nov 12, 2026

    @nik13
    Contributor

    Thanks, Jabrail, for the careful report and the patch in #270. Both problems are fixed in traceai-google-adk 0.1.7 (via #445): it installs alongside Google ADK 2.x, and tracing starts and stops cleanly on ADK 2.12. We're closing this as resolved. If you still see a failure on 0.1.7, please reopen with the versions and we'll take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions