Skip to content

Commit

Permalink
[DLL Build] link to opentelemetry_logs even without OTLP (open-teleme…
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan authored Jun 3, 2023
1 parent 082bb93 commit 834c0c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

// clang-format off

# include "opentelemetry/exporters/otlp/protobuf_include_prefix.h"
# include "opentelemetry/proto/collector/metrics/v1/metrics_service.grpc.pb.h"
# include "opentelemetry/common/spin_lock_mutex.h"
# include "opentelemetry/exporters/otlp/protobuf_include_suffix.h"
#include "opentelemetry/exporters/otlp/protobuf_include_prefix.h"
#include "opentelemetry/proto/collector/metrics/v1/metrics_service.grpc.pb.h"
#include "opentelemetry/common/spin_lock_mutex.h"
#include "opentelemetry/exporters/otlp/protobuf_include_suffix.h"

// clang-format on

Expand Down
12 changes: 6 additions & 6 deletions ext/src/dll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ if(WITH_OTLP_HTTP)
endif()

if(WITH_LOGS_PREVIEW)
target_link_libraries(opentelemetry_cpp PRIVATE opentelemetry_logs)

if(WITH_OTLP_GRPC)
target_link_libraries(
opentelemetry_cpp PRIVATE opentelemetry_logs
opentelemetry_exporter_otlp_grpc_log)
target_link_libraries(opentelemetry_cpp
PRIVATE opentelemetry_exporter_otlp_grpc_log)
endif()

if(WITH_OTLP_HTTP)
target_link_libraries(
opentelemetry_cpp PRIVATE opentelemetry_logs
opentelemetry_exporter_otlp_http_log)
target_link_libraries(opentelemetry_cpp
PRIVATE opentelemetry_exporter_otlp_http_log)
endif()
endif()

Expand Down

0 comments on commit 834c0c4

Please sign in to comment.