Fix Virtual GenAI e2e test failure by pinning Python dependencies#13810
Merged
Fix Virtual GenAI e2e test failure by pinning Python dependencies#13810
Conversation
Pin Python dependencies in the OpenAI e2e test Dockerfile and remove `opentelemetry-bootstrap --action=install` which auto-installs the official `opentelemetry-instrumentation-openai-v2` package that is incompatible with OTel SDK 1.41.0, crashing GenAI instrumentation at runtime. Also fix indentation in pom.xml gpg-plugin closing tags.
wankai123
approved these changes
Apr 10, 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.
Fix Virtual GenAI e2e test broken on master since April 9
Root cause: On April 9,
opentelemetry-sdkupdated to 1.41.0. Theopentelemetry-bootstrap --action=installstep in the Dockerfile auto-installsopentelemetry-instrumentation-openai-v2==2.3b0(the official OTel package), which is incompatible with OTel SDK 1.41.0 — it crashes withTypeError: wrap_function_wrapper() got an unexpected keyword argument 'module'. This silently kills all GenAI span attribute generation at runtime, so noVIRTUAL_GENAIservice is ever created.Fix:
opentelemetry-bootstrap --action=install— it auto-installs the broken official package that conflicts with the working Traceloop instrumentation.Verified locally that Traceloop
opentelemetry-instrumentation-openai==0.58.0with OTel SDK 1.41.0 produces all required span attributes:gen_ai.response.model✅gen_ai.provider.name✅gen_ai.usage.input_tokens✅gen_ai.usage.output_tokens✅Also includes a minor indentation fix in
pom.xml(gpg-plugin closing tags).CHANGESlog.