Skip to content

fix(deps): expand OpenTelemetry upper bound to <=1.43.0#6426

Open
Varshith-Kali wants to merge 2 commits into
google:mainfrom
Varshith-Kali:fix/support-opentelemetry-1.43.0
Open

fix(deps): expand OpenTelemetry upper bound to <=1.43.0#6426
Varshith-Kali wants to merge 2 commits into
google:mainfrom
Varshith-Kali:fix/support-opentelemetry-1.43.0

Conversation

@Varshith-Kali

Copy link
Copy Markdown

Description

Fixes #6421

google-adk 2.3.0–2.5.0 constrain opentelemetry-api and opentelemetry-sdk to <=1.42.1. This prevents interoperability with projects that require opentelemetry-sdk==1.43.0 (e.g. ZenML 0.96.2 for FastAPI 0.138 support), leaving no overlapping version for dependency resolution.

This PR expands the upper bound from <=1.42.1 to <=1.43.0 — a narrow one-release bump that preserves the existing lower bound (>=1.39).

Changes

  • pyproject.toml: opentelemetry-api and opentelemetry-sdk upper bound changed from <=1.42.1 to <=1.43.0

Why

The issue reporter (@dacongming0425) already validated that ADK 2.5.0 telemetry tests pass with OpenTelemetry 1.43.0:

  • ests/unittests/telemetry/test_functional.py — pass
  • ests/unittests/telemetry/test_spans.py — pass
  • ests/unittests/telemetry/test_telemetry_context.py — pass

A narrow <=1.43.0 expansion is preferable to removing the upper bound entirely because ADK uses unstable OpenTelemetry log APIs that may break across releases.

Testing

Ran the full telemetry test suite locally with opentelemetry-api==1.43.0 and opentelemetry-sdk==1.43.0 installed:

275 passed, 2 failed, 18 warnings in 34.82s

The 2 failures are pre-existing Windows platform issues unrelated to this change:

  1. est_detect_error_bash_tool — import resource is Unix-only
  2. est_instrumented_with_opentelemetry_instrumentation_google_genai — platform-specific instrumentation check

Both failures reproduce on the unmodified main branch on Windows.

Testing Plan

  • Telemetry unit tests pass with OTel 1.43.0
  • CI multi-version test matrix (tox) passes on Linux

AI Assistance Disclosure

Drafted with AI assistance, reviewed and tested by me before submission.

Expand the opentelemetry-api and opentelemetry-sdk upper bound from
<=1.42.1 to <=1.43.0 so downstream projects (e.g. ZenML 0.96.2 which
requires opentelemetry-sdk==1.43.0) can resolve dependencies without
conflicts.

The expansion is narrow (one release) and preserves the existing lower
bound. ADK's full telemetry test suite passes with 1.43.0 — verified
locally: 275 passed, 2 pre-existing Windows-only failures unrelated to
this change (resource module / instrumentation platform check).

Fixes google#6421

Drafted with AI assistance, reviewed and tested by me before submission.
@google-cla

google-cla Bot commented Jul 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@adk-bot adk-bot added the tracing [Component] This issue is related to OpenTelemetry tracing label Jul 18, 2026
@Varshith-Kali
Varshith-Kali force-pushed the fix/support-opentelemetry-1.43.0 branch from 73ef6ec to 23ffa85 Compare July 19, 2026 07:28
Signed-off-by: Varshith Puli <pulivarshit@gmail.com>
@Varshith-Kali
Varshith-Kali force-pushed the fix/support-opentelemetry-1.43.0 branch from 23ffa85 to 512ef2f Compare July 19, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tracing [Component] This issue is related to OpenTelemetry tracing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support OpenTelemetry 1.43.0

3 participants