File tree 4 files changed +39
-3
lines changed
4 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ if [[ "$1" == "cmake.test" ]]; then
30
30
rm -rf *
31
31
cmake -DCMAKE_BUILD_TYPE=Debug \
32
32
-DWITH_PROMETHEUS=ON \
33
+ -DWITH_ZIPKIN=ON \
34
+ -DWITH_ELASTICSEARCH=ON \
33
35
-DCMAKE_CXX_FLAGS=" -Werror" \
34
36
" ${SRC_DIR} "
35
37
make
Original file line number Diff line number Diff line change @@ -10,6 +10,19 @@ if(BUILD_TESTING)
10
10
es_log_exporter_test ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
11
11
opentelemetry_exporter_elasticsearch_logs)
12
12
13
+ install (
14
+ TARGETS opentelemetry_exporter_elasticsearch_logs
15
+ EXPORT "${PROJECT_NAME} -target"
16
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
17
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
18
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
19
+
20
+ install (
21
+ DIRECTORY include /opentelemetry/exporters/elasticsearch
22
+ DESTINATION include /opentelemetry/exporters/
23
+ FILES_MATCHING
24
+ PATTERN "*.h" )
25
+
13
26
gtest_add_tests(
14
27
TARGET es_log_exporter_test
15
28
TEST_PREFIX exporter.
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ namespace logs_api = opentelemetry::logs;
14
14
namespace nostd = opentelemetry::nostd;
15
15
namespace logs_exporter = opentelemetry::exporter::logs;
16
16
17
+ TEST (ElasticsearchLogsExporterTests, Dummy)
18
+ {
19
+ // to enable linking
20
+ }
21
+
17
22
#if 0
18
23
// Attempt to write a log to an invalid host/port, test that the Export() returns failure
19
24
TEST(ElasticsearchLogsExporterTests, InvalidEndpoint)
Original file line number Diff line number Diff line change @@ -17,12 +17,28 @@ find_package(CURL)
17
17
if (CURL_FOUND)
18
18
add_definitions (-DWITH_CURL)
19
19
endif ()
20
- add_library (zipkin_trace_exporter src/zipkin_exporter.cc src/recordable.cc)
20
+ add_library (opentelemetry_exporter_zipkin_trace src/zipkin_exporter.cc
21
+ src/recordable.cc)
22
+
23
+ install (
24
+ TARGETS opentelemetry_exporter_zipkin_trace
25
+ EXPORT "${PROJECT_NAME} -target"
26
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
27
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
28
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
29
+
30
+ install (
31
+ DIRECTORY include /opentelemetry/exporters/zipkin
32
+ DESTINATION include /opentelemetry/exporters/
33
+ FILES_MATCHING
34
+ PATTERN "*.h" )
35
+
21
36
if (BUILD_TESTING)
22
37
add_executable (zipkin_recordable_test test /zipkin_recordable_test.cc)
23
38
24
- target_link_libraries (zipkin_recordable_test ${GTEST_BOTH_LIBRARIES}
25
- ${CMAKE_THREAD_LIBS_INIT} zipkin_trace_exporter)
39
+ target_link_libraries (
40
+ zipkin_recordable_test ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}
41
+ opentelemetry_exporter_zipkin_trace http_client_curl)
26
42
27
43
gtest_add_tests(
28
44
TARGET zipkin_recordable_test
You can’t perform that action at this time.
0 commit comments