-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
2,220 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
cc_library( | ||
name = "etw_provider_exporter", | ||
srcs = [ | ||
"src/etw_provider_exporter.cc", | ||
], | ||
hdrs = [ | ||
"include/opentelemetry/exporters/etw/etw_provider_exporter.h", | ||
"include/opentelemetry/exporters/etw/utils.h", | ||
"include/opentelemetry/exporters/etw/uuid.h", | ||
], | ||
strip_include_prefix = "include", | ||
deps = [ | ||
"//api", | ||
"//sdk/src/trace", | ||
], | ||
) | ||
|
||
cc_test( | ||
name = "etw_provider_test", | ||
srcs = ["test/etw_provider_test.cc"], | ||
deps = [ | ||
":etw_provider_exporter", | ||
"@com_google_googletest//:gtest_main", | ||
], | ||
) | ||
|
||
cc_library( | ||
name = "etw_tracer_exporter", | ||
srcs = [ | ||
"src/etw_tracer_exporter.cc", | ||
], | ||
hdrs = [ | ||
"include/opentelemetry/exporters/etw/etw_data.h", | ||
"include/opentelemetry/exporters/etw/etw_tracer_exporter.h", | ||
"include/opentelemetry/exporters/etw/utils.h", | ||
"include/opentelemetry/exporters/etw/uuid.h", | ||
], | ||
strip_include_prefix = "include", | ||
deps = [ | ||
":etw_provider_exporter", | ||
"//api", | ||
"//sdk/src/trace", | ||
], | ||
) | ||
|
||
cc_test( | ||
name = "etw_tracer_test", | ||
srcs = ["test/etw_tracer_test.cc"], | ||
deps = [ | ||
":etw_tracer_exporter", | ||
"@com_google_googletest//:gtest_main", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
include_directories(include) | ||
|
||
add_library(opentelemetry_exporter_etw_provider src/etw_provider_exporter.cc) | ||
add_library(opentelemetry_exporter_etw_tracer src/etw_tracer_exporter.cc) | ||
|
||
if(BUILD_TESTING) | ||
add_executable(etw_provider_test test/etw_provider_test.cc) | ||
add_executable(etw_tracer_test test/etw_tracer_test.cc) | ||
|
||
target_link_libraries( | ||
etw_provider_test ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} | ||
opentelemetry_exporter_etw_provider) | ||
|
||
target_link_libraries( | ||
etw_tracer_test ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} | ||
opentelemetry_exporter_etw_tracer) | ||
|
||
gtest_add_tests( | ||
TARGET etw_provider_test | ||
TEST_PREFIX exporter. | ||
TEST_LIST etw_provider_test) | ||
gtest_add_tests( | ||
TARGET etw_tracer_test | ||
TEST_PREFIX exporter. | ||
TEST_LIST etw_tracer_test) | ||
endif() # BUILD_TESTING |
Oops, something went wrong.