Skip to content

feat: use GenAI util for Google ADK spans#194

Closed
sipercai wants to merge 1 commit into
alibaba:mainfrom
sipercai:feat/google-adk-genai-util
Closed

feat: use GenAI util for Google ADK spans#194
sipercai wants to merge 1 commit into
alibaba:mainfrom
sipercai:feat/google-adk-genai-util

Conversation

@sipercai
Copy link
Copy Markdown
Collaborator

@sipercai sipercai commented May 21, 2026

Description

This PR updates the LoongSuite Google ADK instrumentation to construct GenAI spans through the shared GenAI util lifecycle, preserving streaming state, concurrent invocations, response metadata, and gen_ai.span.kind attributes for agent/tool/LLM spans. It also adds a local otel-gui smoke example covering non-streaming, streaming, and concurrent Google ADK calls, updates documentation, and expands tests for callback concurrency and runner span finalization.

Fixes # (N/A)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • tox -e precommit
  • OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=SPAN_ONLY python -m tox -c tox-loongsuite.ini -e py312-test-loongsuite-instrumentation-google-adk-latest
  • OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=SPAN_ONLY python -m tox -c tox-loongsuite.ini -e py39-test-loongsuite-instrumentation-google-adk-latest
  • python -m tox -c tox-loongsuite.ini -e lint-loongsuite-instrumentation-google-adk
  • python instrumentation-loongsuite/loongsuite-instrumentation-google-adk/examples/otelgui_smoke.py --scenario all

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@sipercai sipercai force-pushed the feat/google-adk-genai-util branch from 97968c7 to a535875 Compare May 21, 2026 11:18
@sipercai
Copy link
Copy Markdown
Collaborator Author

Migrated to an upstream repository branch PR for Copilot review and organization-side review flow: #199

@sipercai sipercai closed this May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants