[Python Otel] Remove opentelemetry version pin (#36448)

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #36448

PiperOrigin-RevId: 629113962
pull/36446/head^2
Xuan Wang 7 months ago committed by Copybara-Service
parent f68f8e8fa3
commit 79e42f9837
  1. 2
      examples/python/observability/requirements.txt
  2. 3
      src/python/grpcio_observability/grpc_observability/BUILD.bazel
  3. 2
      src/python/grpcio_observability/setup.py
  4. 4
      src/python/grpcio_tests/tests/observability/BUILD.bazel

@ -1,3 +1,3 @@
grpcio>=1.62.0
grpcio-observability>=1.62.0
opentelemetry-sdk==1.21.0
opentelemetry-sdk>=1.21.0

@ -53,7 +53,7 @@ pyx_library(
],
)
# Since `opentelemetry-sdk` and `opentelemetry-api` are non-hermetic,
# Since `opentelemetry-api` is non-hermetic,
# pyobservability is for internal use only.
py_library(
name = "_opentelemetry_observability",
@ -63,7 +63,6 @@ py_library(
"_open_telemetry_plugin.py",
],
deps = [
requirement("opentelemetry-sdk"),
requirement("opentelemetry-api"),
],
)

@ -290,7 +290,7 @@ setuptools.setup(
install_requires=[
"grpcio=={version}".format(version=grpc_version.VERSION),
"setuptools>=59.6.0",
"opentelemetry-api==1.21.0",
"opentelemetry-api>=1.21.0",
],
cmdclass={
"build_ext": BuildExt,

@ -11,6 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@grpc_python_dependencies//:requirements.bzl", "requirement")
package(default_visibility = ["//visibility:public"])
py_library(
@ -34,6 +37,7 @@ py_test(
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_observability/grpc_observability:pyobservability",
"//src/python/grpcio_tests/tests/testing",
requirement("opentelemetry-sdk"),
],
)

Loading…
Cancel
Save