Fix: Pin OpenTelemetry dependencies to resolve ImportError crash loop#6
Open
sebmaltz wants to merge 1 commit intoMythicAgents:devfrom
Open
Fix: Pin OpenTelemetry dependencies to resolve ImportError crash loop#6sebmaltz wants to merge 1 commit intoMythicAgents:devfrom
sebmaltz wants to merge 1 commit intoMythicAgents:devfrom
Conversation
opentelemetry-instrumentation-langchain 0.52.5 imports GenAICustomOperationName from opentelemetry.semconv_ai, but the symbol doesn't exist in semconv_ai 0.4.13 (the latest available version). Pin to 0.52.4 + 0.4.13 which is the last known-good combination. Also pin arize-phoenix to 13.3.0 for reproducibility.
Collaborator
|
So, after looking into it, it turns out I actually want to be using the |
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
arize-phoenix==13.3.0,opentelemetry-instrumentation-langchain==0.52.4, andopentelemetry-semantic-conventions-ai==0.4.13inrequirements.txtopentelemetry-instrumentation-langchain==0.52.5importingGenAICustomOperationNamewhich doesn't exist inopentelemetry-semantic-conventions-ai<0.4.15Problem
The unpinned
opentelemetry-instrumentation-langchainresolves to0.52.5(released 2026-02-23), which tries to importGenAICustomOperationNamefromopentelemetry.semconv_ai. That symbol was only added inopentelemetry-semantic-conventions-ai==0.4.15(released 2026-03-02), but0.52.5declares a dependency of>=0.4.13,<0.5.0— so pip installs0.4.13which lacks the symbol. This causes an immediateImportErrorcrash loop on container start.Fix
Pin to the last known-good versions from 2026-02-19/20:
arize-phoenixopentelemetry-instrumentation-langchainopentelemetry-semantic-conventions-aiTesting
sudo ./mythic-cli build sage— builds successfullysudo ./mythic-cli start sage— container starts without crash loopsudo ./mythic-cli logs sage— no ImportError