-
Notifications
You must be signed in to change notification settings - Fork 423
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
ETW Exporter - Add support for Sampler and ID Generator #1547
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1547 +/- ##
==========================================
- Coverage 85.02% 85.00% -0.02%
==========================================
Files 156 156
Lines 4977 4977
==========================================
- Hits 4231 4230 -1
- Misses 746 747 +1
|
Tracer(*this, name, evtFmt)}; | ||
return nostd::shared_ptr<opentelemetry::trace::Tracer>{tracer}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ThomsonTan - Can you please review this PR when you have time? The changes were crashing earlier while creating Spans that are not sampled. The fix is to create the Tracer
using std::shared_ptr
, and then move/encapsulate it to nostd::shared_ptr
(as done in line 1014 and 1016 above).
@@ -26,18 +26,21 @@ | |||
|
|||
#include "opentelemetry/common/key_value_iterable_view.h" | |||
|
|||
#include "opentelemetry/trace/span.h" | |||
#include "opentelemetry/trace/noop.h" | |||
//#include "opentelemetry/trace/span.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this neede?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required. Removed now.
Changes
ETW exporter has its own header-only SDK which doesn't support Sampling, and custom id generation. This PR adds that support.
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes