Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTLP exporter pins opentelemetry-proto #3022

Closed
Yamakaky opened this issue Nov 4, 2022 · 6 comments
Closed

OTLP exporter pins opentelemetry-proto #3022

Yamakaky opened this issue Nov 4, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@Yamakaky
Copy link

Yamakaky commented Nov 4, 2022

Both opentelemetry-exporter-otlp-proto-* packages have a hard == dependency pin on opentelemetry-proto instead of the softer ~= used for the other dependencies. This mix of ~= and == can break pip dependency resolution as it happened for me today.

Context:

See:

I believe both these files should read "opentelemetry-proto ~= 1.14"

@Yamakaky Yamakaky added the bug Something isn't working label Nov 4, 2022
@Yamakaky Yamakaky changed the title OTLP exporter pins OTLP exporter pins opentelemetry-proto Nov 4, 2022
@srikanthccv
Copy link
Member

How did it break pip dependency resolution?

@Yamakaky
Copy link
Author

Yamakaky commented Nov 8, 2022

Hum, I first thought that the wrong version was installed, but I think this is a dependency specification problem. grpc requires sdk~=1.12 but it does https://github.com/open-telemetry/opentelemetry-python/blob/main/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py#L35 which is introduced in 1.14.

In any case I believe the original report should still be fixed.

@srikanthccv
Copy link
Member

srikanthccv commented Nov 8, 2022

The new proto definitions get added, and some get removed occasionally after deprecation https://github.com/open-telemetry/opentelemetry-proto, so we try to use newly generated files whenever possible and make sure to test them against the exporters' code. If are you reporting an incorrect min version requirement for SDK that's a valid point but I don't see a good reason why the proto package should be ~= it.

@ocelotl
Copy link
Contributor

ocelotl commented Nov 18, 2022

The way we update the opentelemetry-proto dependency in opentelemetry-exporter-otlp-proto-grpc is to make it point to the latest released version, so I think it would be the same to have use ~= or ==.

WDYT, @srikanthccv?

@srikanthccv
Copy link
Member

I still don't understand what the author was referring to. How did it break the pip dependency resolution?

@Yamakaky
Copy link
Author

I didn't keep the original error at hand, but I believe this was due to the sdk version problem for the grpc exporter. I'll close this and open another one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants