Skip to content

Commit d9a4eb6

Browse files
committed
wip
1 parent fafbd70 commit d9a4eb6

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ set(couchbase_cxx_client_FILES
249249
core/meta/version.cxx
250250
core/metrics/logging_meter.cxx
251251
core/metrics/meter_wrapper.cxx
252-
core/metrics/otel_meter.cxx
253252
core/n1ql_query_options.cxx
254253
core/operations/document_analytics.cxx
255254
core/operations/document_append.cxx

cmake/CompilerWarnings.cmake

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ function(set_project_warnings project_name)
7070
)
7171

7272
set(CLANG_WARNINGS ${COMMON_WARNINGS})
73-
if(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS_EQUAL "17.0.0")
74-
set(CLANG_WARNINGS ${CLANG_WARNINGS} -Wshadow # warn the user if a variable declaration shadows one from a parent
75-
# context
76-
)
77-
endif()
7873

7974
if(MSVC)
8075
set(PROJECT_WARNINGS ${MSVC_WARNINGS})

cmake/ThirdPartyDependencies.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,17 @@ if(NOT TARGET opentelemetry_api)
6262
# https://github.com/open-telemetry/opentelemetry-cpp/releases
6363
cpmaddpackage(
6464
NAME
65-
opentelemetry
65+
opentelemetry_api
6666
VERSION
6767
1.17.0
6868
GITHUB_REPOSITORY
6969
"open-telemetry/opentelemetry-cpp"
7070
EXCLUDE_FROM_ALL ON
7171
OPTIONS
7272
"OPENTELEMETRY_INSTALL OFF"
73-
# "WITH_API_ONLY ON"
73+
"WITH_ABSEIL ON"
7474
"WITH_OTLP_HTTP ON"
75+
"WITH_OTLP_GRPC OFF"
7576
"WITH_BENCHMARK OFF"
7677
"BUILD_TESTING OFF"
7778
"BUILD_SHARED_LIBS OFF"
@@ -80,7 +81,6 @@ if(NOT TARGET opentelemetry_api)
8081
"CMAKE_POSITION_INDEPENDENT_CODE ON")
8182
endif()
8283

83-
8484
if(NOT TARGET Microsoft.GSL::GSL)
8585
# https://github.com/microsoft/GSL/releases
8686
cpmaddpackage(

core/meta/version.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <llhttp.h>
3333
#include <openssl/crypto.h>
3434
#include <openssl/x509.h>
35+
#include <opentelemetry/version.h>
3536
#include <snappy-stubs-public.h>
3637
#include <spdlog/version.h>
3738

@@ -168,6 +169,7 @@ sdk_build_info() -> std::map<std::string, std::string>
168169
#if defined(__GLIBC__)
169170
info["libc"] = fmt::format("glibc {}.{}", __GLIBC__, __GLIBC_MINOR__);
170171
#endif
172+
info["opentelemetry_api"] = OPENTELEMETRY_VERSION;
171173

172174
return info;
173175
}

0 commit comments

Comments
 (0)