From 16cee0cbae3d2dd9b5b59713fb850fde6771a5df Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Fri, 21 Apr 2023 10:23:28 -0700 Subject: [PATCH] Show warning message if WITH_OTLP is enabled --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eef100f164..96adc41236 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,6 +161,13 @@ endif() option(WITH_OTLP "Whether to include the OpenTelemetry Protocol in the SDK" OFF) +if(WITH_OTLP) + message( + WARNING + "WITH_OTLP is deprecated and will be removed in future. Please set either WITH_OTLP_GRPC or WITH_OTLP_HTTP, or even both." + ) +endif() + option(WITH_OTLP_HTTP "Whether to include the OTLP http exporter in the SDK" OFF)