Skip to content

Fix: Pin OpenTelemetry dependencies to resolve ImportError crash loop#6

Open
sebmaltz wants to merge 1 commit intoMythicAgents:devfrom
sebmaltz:fix/pin-opentelemetry-dependencies
Open

Fix: Pin OpenTelemetry dependencies to resolve ImportError crash loop#6
sebmaltz wants to merge 1 commit intoMythicAgents:devfrom
sebmaltz:fix/pin-opentelemetry-dependencies

Conversation

@sebmaltz
Copy link
Copy Markdown

@sebmaltz sebmaltz commented Mar 13, 2026

Summary

  • Pins arize-phoenix==13.3.0, opentelemetry-instrumentation-langchain==0.52.4, and opentelemetry-semantic-conventions-ai==0.4.13 in requirements.txt
  • Fixes crash loop caused by opentelemetry-instrumentation-langchain==0.52.5 importing GenAICustomOperationName which doesn't exist in opentelemetry-semantic-conventions-ai<0.4.15

Problem

The unpinned opentelemetry-instrumentation-langchain resolves to 0.52.5 (released 2026-02-23), which tries to import GenAICustomOperationName from opentelemetry.semconv_ai. That symbol was only added in opentelemetry-semantic-conventions-ai==0.4.15 (released 2026-03-02), but 0.52.5 declares a dependency of >=0.4.13,<0.5.0 — so pip installs 0.4.13 which lacks the symbol. This causes an immediate ImportError crash loop on container start.

Fix

Pin to the last known-good versions from 2026-02-19/20:

Package Version Released
arize-phoenix 13.3.0 2026-02-20
opentelemetry-instrumentation-langchain 0.52.4 2026-02-19
opentelemetry-semantic-conventions-ai 0.4.13 2025-08-22

Testing

  1. sudo ./mythic-cli build sage — builds successfully
  2. sudo ./mythic-cli start sage — container starts without crash loop
  3. sudo ./mythic-cli logs sage — no ImportError

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.
@Ne0nd0g
Copy link
Copy Markdown
Collaborator

Ne0nd0g commented Mar 23, 2026

So, after looking into it, it turns out I actually want to be using the openinference-instrumentation-langchain package and not the opentelemetry-instrumentation-langchain package

Ne0nd0g added a commit that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants