How come opentelemetry-proto is optional to opentelemetry-sdk?
#4956
-
|
I'm encountering an issue with ray-project/ray#61530 and trying to understand if the issue is on their side or if it is because there isn't a proper dependency within |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The dependency chain works like this:
Regarding the Ray issue (#61530): This pattern causes version conflicts because Ray pins Workaround: explicitly pin # Find the expected version
pip show opentelemetry-exporter-otlp-proto-grpc | grep opentelemetry-proto
# Then pin it explicitly in your requirements
opentelemetry-proto==1.x.yOr, check if your OTel package versions are all from the same release (they all version-lock together, e.g., all 1.27.0). This is a known pain point in ecosystems that bundle OTel (Ray, LangChain, etc.) — the fix is usually to align all |
Beta Was this translation helpful? Give feedback.
opentelemetry-protois optional toopentelemetry-sdkbecause the SDK is transport-agnostic — it doesn't require OTLP specifically. You can use the SDK with other exporters (console exporter, Zipkin, custom exporters, etc.) that have nothing to do with Protocol Buffers.The dependency chain works like this: