fix(langchain): bump semconv-ai min requirement to 0.4.14 to fix GenAICustomOperationName ImportError#3794
Conversation
…ICustomOperationName ImportError opentelemetry-instrumentation-langchain 0.53.0 imports GenAICustomOperationName from opentelemetry.semconv_ai (added in commit f687ca1 / version 0.4.14). The minimum requirement was still >=0.4.13, so users who had exactly 0.4.13 installed got: ImportError: cannot import name 'GenAICustomOperationName' from 'opentelemetry.semconv_ai' Fix: bump the lower bound to >=0.4.14 where GenAICustomOperationName exists. Closes traceloop#3766
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis change bumps the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
"Bump the lower bound from >=0.4.13 to >=0.4.14" didn't fix the import error for me. |
Problem
opentelemetry-instrumentation-langchain0.53.0 importsGenAICustomOperationNamefromopentelemetry.semconv_ai(added in version 0.4.14). The minimum requirement inpyproject.tomlwas still>=0.4.13, so users who had exactly 0.4.13 installed got anImportErroron startup (closes #3766):Fix
Bump the lower bound from
>=0.4.13to>=0.4.14:"opentelemetry-semantic-conventions-ai>=0.4.14,<0.5.0",GenAICustomOperationNamewas introduced in semconv-ai 0.4.14 (commit f687ca1). This is a minimal, non-breaking change — 0.4.14 is already published on PyPI.Closes #3766
Summary by CodeRabbit