1# Copyright 2024 gRPC authors. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15load("@grpc_python_dependencies//:requirements.bzl", "requirement") 16load("@rules_python//python:defs.bzl", "py_library") 17 18package(default_visibility = ["//:__subpackages__"]) 19 20# Since packages in requirement() are non-hermetic, 21# csm_observability is for internal use only. 22py_library( 23 name = "csm_observability", 24 srcs = glob(["*.py"]), 25 imports = [ 26 ".", 27 "../", 28 ], 29 srcs_version = "PY3ONLY", 30 deps = [ 31 requirement("opentelemetry-resourcedetector-gcp"), 32 requirement("opentelemetry-sdk"), 33 "//src/python/grpcio/grpc:grpcio", 34 "//src/python/grpcio_observability/grpc_observability:pyobservability", 35 "@com_google_protobuf//:protobuf_python", 36 ], 37) 38