Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 1 | # gRPC Bazel BUILD file. |
| 2 | # |
| 3 | # Copyright 2023 gRPC authors. |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | |
| 17 | load( |
| 18 | "//bazel:grpc_build_system.bzl", |
| 19 | "grpc_cc_library", |
| 20 | ) |
| 21 | |
| 22 | licenses(["reciprocal"]) |
| 23 | |
| 24 | package( |
| 25 | default_visibility = ["//visibility:public"], |
Yash Tibrewal | 7a97b35 | 2023-10-12 00:14:59 | [diff] [blame] | 26 | features = [ |
| 27 | "layering_check", |
| 28 | ], |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 29 | ) |
| 30 | |
| 31 | grpc_cc_library( |
Yash Tibrewal | 03776a2 | 2023-09-11 19:23:45 | [diff] [blame] | 32 | name = "csm_observability", |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 33 | srcs = [ |
Yash Tibrewal | 03776a2 | 2023-09-11 19:23:45 | [diff] [blame] | 34 | "csm_observability.cc", |
Yash Tibrewal | 0dd8a05 | 2023-09-01 19:04:19 | [diff] [blame] | 35 | "metadata_exchange.cc", |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 36 | ], |
| 37 | hdrs = [ |
Yash Tibrewal | 03776a2 | 2023-09-11 19:23:45 | [diff] [blame] | 38 | "csm_observability.h", |
Yash Tibrewal | 0dd8a05 | 2023-09-01 19:04:19 | [diff] [blame] | 39 | "metadata_exchange.h", |
Yash Tibrewal | d670ffa | 2023-09-16 00:51:33 | [diff] [blame] | 40 | "//:include/grpcpp/ext/csm_observability.h", |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 41 | ], |
| 42 | external_deps = [ |
Yash Tibrewal | 03776a2 | 2023-09-11 19:23:45 | [diff] [blame] | 43 | "absl/functional:any_invocable", |
Tanvi Jagtap | b72d318 | 2024-05-03 06:33:48 | [diff] [blame] | 44 | "absl/log:check", |
Tanvi Jagtap | 1da5aaf | 2024-05-13 10:18:46 | [diff] [blame] | 45 | "absl/log:log", |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 46 | "absl/status:statusor", |
| 47 | "absl/strings", |
Yash Tibrewal | 7a97b35 | 2023-10-12 00:14:59 | [diff] [blame] | 48 | "google_cloud_cpp:opentelemetry", |
Yash Tibrewal | 387c894 | 2024-02-06 20:17:17 | [diff] [blame] | 49 | "otel/api", |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 50 | "otel/sdk/src/metrics", |
Yash Tibrewal | 0dd8a05 | 2023-09-01 19:04:19 | [diff] [blame] | 51 | "otel/sdk:headers", |
Joshua Haberman | 6c70c78 | 2025-06-19 22:41:01 | [diff] [blame] | 52 | "@com_google_protobuf//upb/base", |
| 53 | "@com_google_protobuf//upb/mem", |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 54 | ], |
Craig Tiller | 4827403 | 2025-03-04 03:31:24 | [diff] [blame] | 55 | tags = [ |
Yash Tibrewal | 12278ba | 2025-03-28 08:21:59 | [diff] [blame] | 56 | # TODO(b/332369798): Remove after fixing bug |
| 57 | "grpc:otel-namespace-calamity", |
Craig Tiller | 4827403 | 2025-03-04 03:31:24 | [diff] [blame] | 58 | ], |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 59 | visibility = ["//:__subpackages__"], |
| 60 | deps = [ |
Mark D. Roth | 0213523 | 2024-03-04 19:04:24 | [diff] [blame] | 61 | "//:call_tracer", |
Yash Tibrewal | ee6ed6a | 2023-09-13 01:43:36 | [diff] [blame] | 62 | "//:gpr", |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 63 | "//:gpr_platform", |
Yash Tibrewal | 0dd8a05 | 2023-09-01 19:04:19 | [diff] [blame] | 64 | "//:grpc_base", |
| 65 | "//:protobuf_struct_upb", |
Mark D. Roth | f6c57b6 | 2024-09-20 20:15:58 | [diff] [blame] | 66 | "//:uri", |
Yash Tibrewal | b038da5 | 2023-09-15 22:28:52 | [diff] [blame] | 67 | "//src/core:channel_args", |
Yash Tibrewal | 0dd8a05 | 2023-09-01 19:04:19 | [diff] [blame] | 68 | "//src/core:env", |
Yash Tibrewal | 938d19f | 2023-09-07 21:07:57 | [diff] [blame] | 69 | "//src/core:error", |
Craig Tiller | 2794078 | 2024-01-10 19:17:58 | [diff] [blame] | 70 | "//src/core:metadata_batch", |
Yash Tibrewal | 0dd8a05 | 2023-09-01 19:04:19 | [diff] [blame] | 71 | "//src/core:slice", |
Yash Tibrewal | b038da5 | 2023-09-15 22:28:52 | [diff] [blame] | 72 | "//src/core:xds_enabled_server", |
Yash Tibrewal | 7e63a2f | 2023-08-02 23:23:01 | [diff] [blame] | 73 | "//src/cpp/ext/otel:otel_plugin", |
| 74 | ], |
| 75 | ) |