Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
3fb1db0
add configuration_core target, install test, programmatic configurati…
dbarker Jul 11, 2026
fab60b2
fix ci issues: windows warning on shadowing, invalid base2 histogram …
dbarker Jul 11, 2026
c3ecf2e
move the spec default values into the config structs. Always set the …
dbarker Jul 11, 2026
77e8e77
fix format. fix jeager remote sampler config parsing given required e…
dbarker Jul 11, 2026
18680fe
shutdown providers to join processor threads before evaluating the bu…
dbarker Jul 12, 2026
7974712
fix sdk builder handling of null parent sampler root model
dbarker Jul 12, 2026
16b201f
revert changes to the jaeger config parser
dbarker Jul 12, 2026
f39bfc6
deprecate the exporter configuration builder CMake components and mov…
dbarker Jul 12, 2026
627e939
Merge branch 'main' into sdk_configuration_core_and_tests
dbarker Jul 12, 2026
d45f229
fix fetch content test
dbarker Jul 12, 2026
6051842
Merge branch 'main' into sdk_configuration_core_and_tests
dbarker Jul 20, 2026
fa6881f
clean up deprecated component test
dbarker Jul 20, 2026
fa19cca
fix merge issue with bazel build file
dbarker Jul 20, 2026
12dc038
fix iwyu warning
dbarker Jul 20, 2026
818704e
Merge branch 'main' into sdk_configuration_core_and_tests
dbarker Jul 21, 2026
493ea49
update the deprecation process doc for cmake components and clean up …
dbarker Jul 21, 2026
2c50cfd
Merge branch 'main' into sdk_configuration_core_and_tests
dbarker Jul 21, 2026
10d6b5a
Merge branch 'main' into sdk_configuration_core_and_tests
dbarker Aug 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -506,27 +506,34 @@ elif [[ "$1" == "cmake.install.test" ]]; then
"ext_http_curl"
"exporters_in_memory"
"exporters_ostream"
"exporters_ostream_builder"
"exporters_otlp_common"
"exporters_otlp_file"
"exporters_otlp_file_builder"
"exporters_otlp_grpc"
"exporters_otlp_grpc_builder"
"exporters_otlp_http"
"exporters_otlp_http_builder"
"exporters_prometheus"
"exporters_prometheus_builder"
"exporters_elasticsearch"
"exporters_zipkin"
"resource_detectors"
)
EXPECTED_COMPONENTS_STRING=$(IFS=\;; echo "${EXPECTED_COMPONENTS[*]}")

DEPRECATED_COMPONENTS=(
"exporters_ostream_builder"
"exporters_otlp_builder_utils"
"exporters_otlp_file_builder"
"exporters_otlp_grpc_builder"
"exporters_otlp_http_builder"
"exporters_prometheus_builder"
)
DEPRECATED_COMPONENTS_STRING=$(IFS=\;; echo "${DEPRECATED_COMPONENTS[*]}")

mkdir -p "${BUILD_DIR}/install_test"
cd "${BUILD_DIR}/install_test"
cmake "${CMAKE_OPTIONS[@]}" \
"-DCMAKE_PREFIX_PATH=${INSTALL_TEST_DIR}" \
"-DINSTALL_TEST_CMAKE_OPTIONS=${CMAKE_OPTIONS_STRING}" \
"-DINSTALL_TEST_COMPONENTS=${EXPECTED_COMPONENTS_STRING}" \
"-DINSTALL_TEST_DEPRECATED_COMPONENTS=${DEPRECATED_COMPONENTS_STRING}" \
-S "${SRC_DIR}/install/test/cmake"
ctest --output-on-failure
exit 0
Expand Down
29 changes: 3 additions & 26 deletions exporters/ostream/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,41 +161,18 @@ list(APPEND OPENTELEMETRY_OSTREAM_BUILDER_TARGETS
otel_add_component(
COMPONENT
exporters_ostream
TARGETS
${OPENTELEMETRY_OSTREAM_TARGETS}
FILES_DIRECTORY
"include/opentelemetry/exporters/ostream"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"*.h"
PATTERN
"console_log_record_builder.h"
EXCLUDE
PATTERN
"console_push_metric_builder.h"
EXCLUDE
PATTERN
"console_span_builder.h"
EXCLUDE)

otel_add_component(
COMPONENT
DEPRECATED_NAMES
exporters_ostream_builder
TARGETS
${OPENTELEMETRY_OSTREAM_TARGETS}
${OPENTELEMETRY_OSTREAM_BUILDER_TARGETS}
FILES_DIRECTORY
"include/opentelemetry/exporters/ostream"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"console_log_record_builder.h"
PATTERN
"console_push_metric_builder.h"
PATTERN
"console_span_builder.h")
"*.h")

if(OPENTELEMETRY_INSTALL)
opentelemetry_add_pkgconfig(
Expand Down
106 changes: 12 additions & 94 deletions exporters/otlp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -744,10 +744,13 @@ target_link_libraries(
otel_add_component(
COMPONENT
exporters_otlp_common
DEPRECATED_NAMES
exporters_otlp_builder_utils
TARGETS
opentelemetry_otlp_common
opentelemetry_otlp_recordable
opentelemetry_proto
opentelemetry_exporter_otlp_builder_utils
FILES_DIRECTORY
"include/opentelemetry/exporters/otlp"
FILES_DESTINATION
Expand All @@ -756,9 +759,6 @@ otel_add_component(
PATTERN
"*.h"
PATTERN
"otlp_builder_utils*.h"
EXCLUDE
PATTERN
"otlp_http*.h"
EXCLUDE
PATTERN
Expand All @@ -768,142 +768,60 @@ otel_add_component(
"otlp_file*.h"
EXCLUDE)

otel_add_component(
COMPONENT
exporter_otlp_builder_utils
TARGETS
opentelemetry_exporter_otlp_builder_utils
FILES_DIRECTORY
"include/opentelemetry/exporters/otlp"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"otlp_builder_utils.h")

if(WITH_OTLP_GRPC)
otel_add_component(
COMPONENT
exporters_otlp_grpc
TARGETS
${OPENTELEMETRY_OTLP_GRPC_TARGETS}
FILES_DIRECTORY
"include/opentelemetry/exporters/otlp"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"otlp_grpc*.h"
PATTERN
"otlp_grpc_span_builder.h"
EXCLUDE
PATTERN
"otlp_grpc_log_record_builder.h"
EXCLUDE
PATTERN
"otlp_grpc_push_metric_builder.h"
EXCLUDE)

otel_add_component(
COMPONENT
DEPRECATED_NAMES
exporters_otlp_grpc_builder
TARGETS
${OPENTELEMETRY_OTLP_GRPC_TARGETS}
${OPENTELEMETRY_OTLP_GRPC_BUILDER_TARGETS}
FILES_DIRECTORY
"include/opentelemetry/exporters/otlp"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"otlp_grpc_span_builder.h"
PATTERN
"otlp_grpc_log_record_builder.h"
PATTERN
"otlp_grpc_push_metric_builder.h")
"otlp_grpc*.h")

endif()

if(WITH_OTLP_HTTP)
otel_add_component(
COMPONENT
exporters_otlp_http
TARGETS
${OPENTELEMETRY_OTLP_HTTP_TARGETS}
FILES_DIRECTORY
"include/opentelemetry/exporters/otlp"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"otlp_http*.h"
PATTERN
"otlp_http_span_builder.h"
EXCLUDE
PATTERN
"otlp_http_log_record_builder.h"
EXCLUDE
PATTERN
"otlp_http_push_metric_builder.h"
EXCLUDE)

otel_add_component(
COMPONENT
DEPRECATED_NAMES
exporters_otlp_http_builder
TARGETS
${OPENTELEMETRY_OTLP_HTTP_TARGETS}
${OPENTELEMETRY_OTLP_HTTP_BUILDER_TARGETS}
FILES_DIRECTORY
"include/opentelemetry/exporters/otlp"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"otlp_http_span_builder.h"
PATTERN
"otlp_http_log_record_builder.h"
PATTERN
"otlp_http_push_metric_builder.h")
"otlp_http*.h")

endif()

if(WITH_OTLP_FILE)
otel_add_component(
COMPONENT
exporters_otlp_file
TARGETS
${OPENTELEMETRY_OTLP_FILE_TARGETS}
FILES_DIRECTORY
"include/opentelemetry/exporters/otlp"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"otlp_file*.h"
PATTERN
"otlp_file_span_builder.h"
EXCLUDE
PATTERN
"otlp_file_log_record_builder.h"
EXCLUDE
PATTERN
"otlp_file_push_metric_builder.h"
EXCLUDE)

otel_add_component(
COMPONENT
DEPRECATED_NAMES
exporters_otlp_file_builder
TARGETS
${OPENTELEMETRY_OTLP_FILE_TARGETS}
${OPENTELEMETRY_OTLP_FILE_BUILDER_TARGETS}
FILES_DIRECTORY
"include/opentelemetry/exporters/otlp"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"otlp_file_span_builder.h"
PATTERN
"otlp_file_log_record_builder.h"
PATTERN
"otlp_file_push_metric_builder.h")
"otlp_file*.h")

endif()

Expand Down
19 changes: 3 additions & 16 deletions exporters/prometheus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,18 @@ target_link_libraries(
otel_add_component(
COMPONENT
exporters_prometheus
TARGETS
opentelemetry_exporter_prometheus
FILES_DIRECTORY
"include/opentelemetry/exporters/prometheus"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"*.h"
PATTERN
"prometheus_pull_builder.h"
EXCLUDE)

otel_add_component(
COMPONENT
DEPRECATED_NAMES
exporters_prometheus_builder
TARGETS
opentelemetry_exporter_prometheus
opentelemetry_exporter_prometheus_builder
FILES_DIRECTORY
"include/opentelemetry/exporters/prometheus"
FILES_DESTINATION
"include/opentelemetry/exporters"
FILES_MATCHING
PATTERN
"prometheus_pull_builder.h")
"*.h")

if(OPENTELEMETRY_INSTALL)
opentelemetry_add_pkgconfig(
Expand Down
19 changes: 19 additions & 0 deletions install/test/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,25 @@ set(INSTALL_TEST_SRC_DIR "${CMAKE_SOURCE_DIR}/../src")

enable_testing()

# -----------------------------------------------------------
# Test find_package with components specified but including deprecated
# components

if(INSTALL_TEST_DEPRECATED_COMPONENTS)
add_test(
NAME cmake-deprecated-components-test
COMMAND
${CMAKE_COMMAND} -Wdeprecated --log-level=DEBUG -S
${CMAKE_SOURCE_DIR}/deprecated_components -B
build-cmake-usage-deprecated-components-test
"-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}" ${INSTALL_TEST_CMAKE_OPTIONS}
"-DINSTALL_TEST_DEPRECATED_COMPONENTS=${INSTALL_TEST_DEPRECATED_COMPONENTS}"
)
set_tests_properties(
cmake-deprecated-components-test
PROPERTIES PASS_REGULAR_EXPRESSION "CMake Deprecation Warning")
endif()

# -----------------------------------------------------------
# Test the full package install using legacy cmake build instructions
# find_package(opentelemetry-cpp CONFIG REQUIRED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.16)
project(opentelemetry-cpp-configuration-install-test LANGUAGES CXX)

find_package(opentelemetry-cpp REQUIRED COMPONENTS configuration
exporters_ostream_builder)
exporters_ostream)

if(NOT TARGET Threads::Threads)
message(FATAL_ERROR "Threads::Threads target not found")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ target_link_libraries(
PRIVATE opentelemetry-cpp::ostream_log_record_exporter
opentelemetry-cpp::ostream_metrics_exporter
opentelemetry-cpp::ostream_span_exporter
opentelemetry-cpp::ostream_log_record_exporter_builder
opentelemetry-cpp::ostream_metrics_exporter_builder
opentelemetry-cpp::ostream_span_exporter_builder
GTest::gtest
GTest::gtest_main)

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ target_link_libraries(
opentelemetry-cpp::otlp_file_exporter
opentelemetry-cpp::otlp_file_log_record_exporter
opentelemetry-cpp::otlp_file_metric_exporter
opentelemetry-cpp::otlp_file_exporter_builder
opentelemetry-cpp::otlp_file_log_record_exporter_builder
opentelemetry-cpp::otlp_file_metric_exporter_builder
GTest::gtest
GTest::gtest_main)

Expand Down
Loading
Loading