@@ -44,13 +44,6 @@ capture_build_info(
4444 ],
4545)
4646
47- config_setting (
48- name = "enable_opentelemetry" ,
49- flag_values = {
50- "//:enable_opentelemetry" : "true" ,
51- },
52- )
53-
5447filegroup (
5548 name = "common_hdrs" ,
5649 srcs = [h for h in google_cloud_cpp_common_hdrs if not h .startswith ("internal/" )],
@@ -61,13 +54,10 @@ cc_library(
6154 name = "google_cloud_cpp_common_private" ,
6255 srcs = google_cloud_cpp_common_srcs + ["internal/build_info.cc" ],
6356 hdrs = google_cloud_cpp_common_hdrs ,
64- defines = select ({
65- ":enable_opentelemetry" : [
66- # Enable OpenTelemetry features in google-cloud-cpp
67- "GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY" ,
68- ],
69- "//conditions:default" : [],
70- }),
57+ defines = [
58+ # Enable OpenTelemetry features in google-cloud-cpp
59+ "GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY" ,
60+ ],
7161 linkopts = select ({
7262 "@platforms//os:windows" : [
7363 "-DEFAULTLIB:bcrypt.lib" ,
@@ -94,12 +84,8 @@ cc_library(
9484 "@abseil-cpp//absl/types:optional" ,
9585 "@abseil-cpp//absl/types:span" ,
9686 "@abseil-cpp//absl/types:variant" ,
87+ "@opentelemetry-cpp//api" ,
9788 ] + select ({
98- ":enable_opentelemetry" : [
99- "@opentelemetry-cpp//api" ,
100- ],
101- "//conditions:default" : [],
102- }) + select ({
10389 "@platforms//os:windows" : [],
10490 "//conditions:default" : [
10591 "@boringssl//:crypto" ,
0 commit comments