-
Notifications
You must be signed in to change notification settings - Fork 558
ETW Tracer exporter #376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
ETW Tracer exporter #376
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
1af25dc
[Issue #326] ETW Tracer Exporter
mishal23 84834dd
add etwData class to use for recordable
mishal23 6978658
Added ETWSpan child from Recordable and defined MakeRecordable function
mishal23 3787b6a
replace NullKeyValueIterable with GetEmptyAttributes, use existing Cl…
mishal23 aaa949e
removed Invalid Span Context, fix formatter issues
mishal23 e8c0cf3
add spankind method, return in shutdown method
mishal23 faaf5c0
move etw_data to exporters/etw, wrap modules with if _WIN32
mishal23 2b87061
Merge branch 'master' into etw_exporter
maxgolov 73cf5ec
Resolving code review comments
maxgolov 8c4996e
Merge branch 'master' into etw_exporter
maxgolov fce52ec
Merge branch 'master' of http://github.com/open-telemetry/opentelemet…
maxgolov 30c886d
Merge branch 'master' into etw_exporter
maxgolov 97256c4
Merge branch 'etw_exporter' of https://github.com/mishal23/openteleme…
maxgolov 5f5c16c
Merge branch 'master' into etw_exporter
maxgolov cac5150
Merge branch 'etw_exporter' of https://github.com/mishal23/openteleme…
maxgolov 4ef7e81
Merge branch 'master' into etw_exporter
maxgolov 6f74947
Merge branch 'etw_exporter' of https://github.com/mishal23/openteleme…
maxgolov 19788f3
Fix compilation error with C++20 STL
maxgolov 33505c6
Rename option to WITH_ETW to be consistent with other exporters
maxgolov ee99010
Fix missing include when compiling with C++20
maxgolov ec0e6ba
Resolve code review issue with NUL terminator
maxgolov 466be98
Fix an issue that required C++-latest
maxgolov 7acc32f
Add comment that highlights the places of code that turn-off TraceLog…
maxgolov c902bb2
Fix formatting issue
maxgolov 1b1a5f2
Addressing code review comments: refactoring event::UUID to utils::UU…
maxgolov 1d1e63d
Fix compiler error due to code review refactor
maxgolov 27455e1
Addressing code review comment: review unused includes
maxgolov cf311b7
Merge branch 'master' into etw_exporter
maxgolov 77c49e7
Merge branch 'master' into etw_exporter
maxgolov 9ec1d2b
Move ETW exporter to 'exporter' namespace
maxgolov ea2a4e4
Apply code formatting
maxgolov a373b98
Merge branch 'master' into etw_exporter
lalitb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.