Skip to content

Commit 043b0a9

Browse files
feat: Add OpenTelemetry instrumentation for Google ADK (#71)
Co-authored-by: ralf0131 <4397305+ralf0131@users.noreply.github.com> Co-authored-by: cirilla-zmh <zmh1625@163.com>
1 parent 4479d00 commit 043b0a9

28 files changed

Lines changed: 5210 additions & 0 deletions

.github/workflows/loongsuite_lint_0.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,25 @@ jobs:
8989
- name: Run tests
9090
run: tox -c tox-loongsuite.ini -e lint-loongsuite-instrumentation-claude-agent-sdk
9191

92+
lint-loongsuite-instrumentation-google-adk:
93+
name: LoongSuite loongsuite-instrumentation-google-adk
94+
runs-on: ubuntu-latest
95+
timeout-minutes: 30
96+
steps:
97+
- name: Checkout repo @ SHA - ${{ github.sha }}
98+
uses: actions/checkout@v4
99+
100+
- name: Set up Python 3.13
101+
uses: actions/setup-python@v5
102+
with:
103+
python-version: "3.13"
104+
105+
- name: Install tox
106+
run: pip install tox-uv
107+
108+
- name: Run tests
109+
run: tox -c tox-loongsuite.ini -e lint-loongsuite-instrumentation-google-adk
110+
92111
lint-loongsuite-instrumentation-mem0:
93112
name: LoongSuite loongsuite-instrumentation-mem0
94113
runs-on: ubuntu-latest

.github/workflows/loongsuite_test_0.yml

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,196 @@ jobs:
526526
- name: Run tests
527527
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-instrumentation-claude-agent-sdk-latest -- -ra
528528

529+
py39-test-loongsuite-instrumentation-google-adk-oldest_ubuntu-latest:
530+
name: LoongSuite loongsuite-instrumentation-google-adk-oldest 3.9 Ubuntu
531+
runs-on: ubuntu-latest
532+
timeout-minutes: 30
533+
steps:
534+
- name: Checkout repo @ SHA - ${{ github.sha }}
535+
uses: actions/checkout@v4
536+
537+
- name: Set up Python 3.9
538+
uses: actions/setup-python@v5
539+
with:
540+
python-version: "3.9"
541+
542+
- name: Install tox
543+
run: pip install tox-uv
544+
545+
- name: Run tests
546+
run: tox -c tox-loongsuite.ini -e py39-test-loongsuite-instrumentation-google-adk-oldest -- -ra
547+
548+
py39-test-loongsuite-instrumentation-google-adk-latest_ubuntu-latest:
549+
name: LoongSuite loongsuite-instrumentation-google-adk-latest 3.9 Ubuntu
550+
runs-on: ubuntu-latest
551+
timeout-minutes: 30
552+
steps:
553+
- name: Checkout repo @ SHA - ${{ github.sha }}
554+
uses: actions/checkout@v4
555+
556+
- name: Set up Python 3.9
557+
uses: actions/setup-python@v5
558+
with:
559+
python-version: "3.9"
560+
561+
- name: Install tox
562+
run: pip install tox-uv
563+
564+
- name: Run tests
565+
run: tox -c tox-loongsuite.ini -e py39-test-loongsuite-instrumentation-google-adk-latest -- -ra
566+
567+
py310-test-loongsuite-instrumentation-google-adk-oldest_ubuntu-latest:
568+
name: LoongSuite loongsuite-instrumentation-google-adk-oldest 3.10 Ubuntu
569+
runs-on: ubuntu-latest
570+
timeout-minutes: 30
571+
steps:
572+
- name: Checkout repo @ SHA - ${{ github.sha }}
573+
uses: actions/checkout@v4
574+
575+
- name: Set up Python 3.10
576+
uses: actions/setup-python@v5
577+
with:
578+
python-version: "3.10"
579+
580+
- name: Install tox
581+
run: pip install tox-uv
582+
583+
- name: Run tests
584+
run: tox -c tox-loongsuite.ini -e py310-test-loongsuite-instrumentation-google-adk-oldest -- -ra
585+
586+
py310-test-loongsuite-instrumentation-google-adk-latest_ubuntu-latest:
587+
name: LoongSuite loongsuite-instrumentation-google-adk-latest 3.10 Ubuntu
588+
runs-on: ubuntu-latest
589+
timeout-minutes: 30
590+
steps:
591+
- name: Checkout repo @ SHA - ${{ github.sha }}
592+
uses: actions/checkout@v4
593+
594+
- name: Set up Python 3.10
595+
uses: actions/setup-python@v5
596+
with:
597+
python-version: "3.10"
598+
599+
- name: Install tox
600+
run: pip install tox-uv
601+
602+
- name: Run tests
603+
run: tox -c tox-loongsuite.ini -e py310-test-loongsuite-instrumentation-google-adk-latest -- -ra
604+
605+
py311-test-loongsuite-instrumentation-google-adk-oldest_ubuntu-latest:
606+
name: LoongSuite loongsuite-instrumentation-google-adk-oldest 3.11 Ubuntu
607+
runs-on: ubuntu-latest
608+
timeout-minutes: 30
609+
steps:
610+
- name: Checkout repo @ SHA - ${{ github.sha }}
611+
uses: actions/checkout@v4
612+
613+
- name: Set up Python 3.11
614+
uses: actions/setup-python@v5
615+
with:
616+
python-version: "3.11"
617+
618+
- name: Install tox
619+
run: pip install tox-uv
620+
621+
- name: Run tests
622+
run: tox -c tox-loongsuite.ini -e py311-test-loongsuite-instrumentation-google-adk-oldest -- -ra
623+
624+
py311-test-loongsuite-instrumentation-google-adk-latest_ubuntu-latest:
625+
name: LoongSuite loongsuite-instrumentation-google-adk-latest 3.11 Ubuntu
626+
runs-on: ubuntu-latest
627+
timeout-minutes: 30
628+
steps:
629+
- name: Checkout repo @ SHA - ${{ github.sha }}
630+
uses: actions/checkout@v4
631+
632+
- name: Set up Python 3.11
633+
uses: actions/setup-python@v5
634+
with:
635+
python-version: "3.11"
636+
637+
- name: Install tox
638+
run: pip install tox-uv
639+
640+
- name: Run tests
641+
run: tox -c tox-loongsuite.ini -e py311-test-loongsuite-instrumentation-google-adk-latest -- -ra
642+
643+
py312-test-loongsuite-instrumentation-google-adk-oldest_ubuntu-latest:
644+
name: LoongSuite loongsuite-instrumentation-google-adk-oldest 3.12 Ubuntu
645+
runs-on: ubuntu-latest
646+
timeout-minutes: 30
647+
steps:
648+
- name: Checkout repo @ SHA - ${{ github.sha }}
649+
uses: actions/checkout@v4
650+
651+
- name: Set up Python 3.12
652+
uses: actions/setup-python@v5
653+
with:
654+
python-version: "3.12"
655+
656+
- name: Install tox
657+
run: pip install tox-uv
658+
659+
- name: Run tests
660+
run: tox -c tox-loongsuite.ini -e py312-test-loongsuite-instrumentation-google-adk-oldest -- -ra
661+
662+
py312-test-loongsuite-instrumentation-google-adk-latest_ubuntu-latest:
663+
name: LoongSuite loongsuite-instrumentation-google-adk-latest 3.12 Ubuntu
664+
runs-on: ubuntu-latest
665+
timeout-minutes: 30
666+
steps:
667+
- name: Checkout repo @ SHA - ${{ github.sha }}
668+
uses: actions/checkout@v4
669+
670+
- name: Set up Python 3.12
671+
uses: actions/setup-python@v5
672+
with:
673+
python-version: "3.12"
674+
675+
- name: Install tox
676+
run: pip install tox-uv
677+
678+
- name: Run tests
679+
run: tox -c tox-loongsuite.ini -e py312-test-loongsuite-instrumentation-google-adk-latest -- -ra
680+
681+
py313-test-loongsuite-instrumentation-google-adk-oldest_ubuntu-latest:
682+
name: LoongSuite loongsuite-instrumentation-google-adk-oldest 3.13 Ubuntu
683+
runs-on: ubuntu-latest
684+
timeout-minutes: 30
685+
steps:
686+
- name: Checkout repo @ SHA - ${{ github.sha }}
687+
uses: actions/checkout@v4
688+
689+
- name: Set up Python 3.13
690+
uses: actions/setup-python@v5
691+
with:
692+
python-version: "3.13"
693+
694+
- name: Install tox
695+
run: pip install tox-uv
696+
697+
- name: Run tests
698+
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-instrumentation-google-adk-oldest -- -ra
699+
700+
py313-test-loongsuite-instrumentation-google-adk-latest_ubuntu-latest:
701+
name: LoongSuite loongsuite-instrumentation-google-adk-latest 3.13 Ubuntu
702+
runs-on: ubuntu-latest
703+
timeout-minutes: 30
704+
steps:
705+
- name: Checkout repo @ SHA - ${{ github.sha }}
706+
uses: actions/checkout@v4
707+
708+
- name: Set up Python 3.13
709+
uses: actions/setup-python@v5
710+
with:
711+
python-version: "3.13"
712+
713+
- name: Install tox
714+
run: pip install tox-uv
715+
716+
- name: Run tests
717+
run: tox -c tox-loongsuite.ini -e py313-test-loongsuite-instrumentation-google-adk-latest -- -ra
718+
529719
py310-test-loongsuite-instrumentation-mem0-oldest_ubuntu-latest:
530720
name: LoongSuite loongsuite-instrumentation-mem0-oldest 3.10 Ubuntu
531721
runs-on: ubuntu-latest

CHANGELOG-loongsuite.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515

16+
- `loongsuite-instrumentation-google-adk`: Add initial support for Google Agent Development Kit (ADK)
17+
([#71](https://github.com/alibaba/loongsuite-python-agent/pull/71))
18+
1619
- `loongsuite-instrumentation-agno`: fix aresponse missing await and double wrapped() calls in stream methods
1720
([#107](https://github.com/alibaba/loongsuite-python-agent/pull/107))
1821

instrumentation-loongsuite/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
| [loongsuite-instrumentation-agentscope](./loongsuite-instrumentation-agentscope) | agentscope >= 0.1.5.dev0 | No | development
55
| [loongsuite-instrumentation-agno](./loongsuite-instrumentation-agno) | agno >= 1.5.0 | No | development
66
| [loongsuite-instrumentation-dify](./loongsuite-instrumentation-dify) | dify | No | development
7+
| [loongsuite-instrumentation-google-adk](./loongsuite-instrumentation-google-adk) | google-adk >= 0.1.0 | Yes | experimental
78
| [loongsuite-instrumentation-langchain](./loongsuite-instrumentation-langchain) | langchain_core >= 0.1.0 | Yes | development
89
| [loongsuite-instrumentation-mcp](./loongsuite-instrumentation-mcp) | mcp>=1.3.0 | Yes | development
910
| [loongsuite-instrumentation-mem0](./loongsuite-instrumentation-mem0) | mem0ai >= 1.0.0 | No | development

0 commit comments

Comments
 (0)