fix(otel): align dependencies with ADOT layer#545
Merged
Conversation
zhongkechen
force-pushed
the
codex/resolve-latest-adot-layer
branch
from
July 17, 2026 06:00
3c2421c to
b12396f
Compare
zhongkechen
marked this pull request as ready for review
July 17, 2026 06:22
Contributor
There was a problem hiding this comment.
Are we going to revert the capped version change after issue is fixed?
What happens if there is a new version of ADOT layer based off newer version of Otel and we try to run it against older version of Otel (1.42.1)?
Contributor
Author
There was a problem hiding this comment.
Not sure. Let's see how it behaves when new version of ADOT is released
ayushiahjolia
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
opentelemetry-api,opentelemetry-sdk, andopentelemetry-exporter-otlpat1.42.1, matching the stable OTel family bundled by ADOT0.18.0/ layer:33.Root cause
OpenTelemetry
1.44.0removed the deprecated Events API. ADOT still importsopentelemetry._events; when the function bundle supplies OTel1.44.0ahead of the Lambda layer onsys.path, ADOT initialization fails while importing_OTEL_PYTHON_EVENT_LOGGER_PROVIDER. Lambda continues with a proxy tracer provider, so spans are non-recording and never reach X-Ray.Updating only the layer to
:33still reproduced both X-Ray failures because that ADOT release predates OTel1.44.0. The dependency ceiling keeps the application and layer on the compatible1.42.1/0.63b1family.Testing
hatch run dev-otel:test(53 passed)hatch run dev-examples:test(79 passed,2 skippedcloud-only X-Ray tests)hatch run examples:buildresolves OTel API, SDK, exporters, and proto to1.42.1, with semantic conventions0.63b1hatch fmt --check