[gRPC-Python] grpcio-observability compatibiltiy with OTEL SDK 1.22.0+

61 views
Skip to first unread message

Kyle Strand

unread,
Apr 24, 2024, 5:36:44 PM4/24/24
to grpc.io
The `grpcio-observability` requirements file (links below) specifies `opentelemetry-sdk == 1.21.0`. Is there a reason why this is pinned to a specific version, rather than using `^` or `>=`? The current OTEL PyPI release is 1.24.0. Additionally, is the OTEL SDK actually required, or could it use the API only, as `opentelemetry-api >= 1.21.0`?

If the version-pinning is necessary, can a version be released that supports OTEL SDK 1.22.0 or above?

Thanks!

Kyle Strand

Links:

`grpcio-observability` requirements file: https://github.com/grpc/grpc/blob/master/examples/python/observability/requirements.txt

OTEL SDK package in PyPI: https://pypi.org/project/opentelemetry-sdk/

Xuan Wang

unread,
Apr 25, 2024, 3:01:13 PM4/25/24
to Kyle Strand, grpc.io, Richard Belleville
Hi Kyle,

We actually do support versions higher than 1.21.0, we'll remove the version ping in the next release.

As for api vs sdk, we do need sdk to create MeterProvider in the example. But the observability package itself doesn't have a dependency on sdk as listed in setup.py (We'll also remove the version ping here).


Thanks,
Xuan

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/67751b5a-c916-4290-a3e5-3386c0c5c2c6n%40googlegroups.com.

Kyle Strand

unread,
Apr 25, 2024, 3:01:19 PM4/25/24
to Xuan Wang, grpc.io, Richard Belleville
Excellent, thank you!

--

Kyle J Strand

Senior Software Engineer

(Pronouns: he/him)

kst...@rigetti.com

rigetti.com 


Confidentiality Note: This message is for the intended recipient only and may contain proprietary, privileged, or confidential information. The use, copying or distribution of the contents of this email, or any attachments hereto, by anyone other than the intended recipient, or an employee or agent authorized by the intended recipient, is prohibited.


Reply all
Reply to author
Forward
0 new messages