File tree Expand file tree Collapse file tree 8 files changed +8
-12
lines changed
include/opentelemetry/sdk Expand file tree Collapse file tree 8 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 77# Enable automatic configs based on platform
88common --enable_platform_specific_config
99
10+ # Make globs that don't match anything fail
11+ common --incompatible_disallow_empty_glob
12+
1013# Needed by gRPC to build on some platforms.
1114build --copt -DGRPC_BAZEL_BUILD
1215
Original file line number Diff line number Diff line change @@ -260,10 +260,6 @@ if(OTELCPP_VERSIONED_LIBS AND NOT BUILD_SHARED_LIBS)
260260 message (FATAL_ERROR "OTELCPP_VERSIONED_LIBS=ON requires BUILD_SHARED_LIBS=ON" )
261261endif ()
262262
263- set (OTELCPP_PROTO_PATH
264- ""
265- CACHE PATH "Path to opentelemetry-proto" )
266-
267263if (WIN32 )
268264 option (WITH_ETW "Whether to include the ETW Exporter in the SDK" ON )
269265else ()
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ endif()
105105
106106if (@WITH_ABSEIL@ OR @WITH_OTLP_GRPC@)
107107 find_package (absl CONFIG)
108- elseif (OR @WITH_OTLP_HTTP@ OR @WITH_OTLP_FILE@)
108+ elseif (@WITH_OTLP_HTTP@ OR @WITH_OTLP_FILE@)
109109 if ("@Protobuf_VERSION@" VERSION_GREATER_EQUAL "3.22.0" )
110110 find_package (absl CONFIG)
111111 endif ()
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ namespace sdk
2121 * with default attributes.
2222 */
2323static const opentelemetry::common::KeyValueIterableView<
24- std::array<std::pair<std::string, int >, 0 >> &
24+ std::array<std::pair<std::string, int32_t >, 0 >> &
2525GetEmptyAttributes () noexcept
2626{
27- static const std::array<std::pair<std::string, int >, 0 > array{};
27+ static const std::array<std::pair<std::string, int32_t >, 0 > array{};
2828 static const opentelemetry::common::KeyValueIterableView<
29- std::array<std::pair<std::string, int >, 0 >>
29+ std::array<std::pair<std::string, int32_t >, 0 >>
3030 kEmptyAttributes (array);
3131
3232 return kEmptyAttributes ;
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ class SpanData final : public Recordable
257257 opentelemetry::common::SystemTimestamp timestamp =
258258 opentelemetry::common::SystemTimestamp (std::chrono::system_clock::now()),
259259 const opentelemetry::common::KeyValueIterable &attributes =
260- opentelemetry::common::KeyValueIterableView<std::map<std::string, int >>(
260+ opentelemetry::common::KeyValueIterableView<std::map<std::string, int32_t >>(
261261 {})) noexcept override
262262 {
263263 SpanDataEvent event (std::string (name), timestamp, attributes);
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package(default_visibility = ["//visibility:public"])
66cc_library (
77 name = "logs" ,
88 srcs = glob (["**/*.cc" ]),
9- hdrs = glob (["**/*.h" ]),
109 include_prefix = "src/logs" ,
1110 deps = [
1211 "//api" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package(default_visibility = ["//visibility:public"])
66cc_library (
77 name = "metrics" ,
88 srcs = glob (["**/*.cc" ]),
9- hdrs = glob (["**/*.h" ]),
109 include_prefix = "src/metrics" ,
1110 deps = [
1211 "//api" ,
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package(default_visibility = ["//visibility:public"])
66cc_library (
77 name = "resource" ,
88 srcs = glob (["**/*.cc" ]),
9- hdrs = glob (["**/*.h" ]),
109 include_prefix = "src/resource" ,
1110 deps = [
1211 "//api" ,
You can’t perform that action at this time.
0 commit comments