Skip to content

Commit

Permalink
Show warning message if WITH_OTLP is enabled (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Apr 22, 2023
1 parent 7ee86a9 commit 71ba593
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 71ba593

Please sign in to comment.