-
Notifications
You must be signed in to change notification settings - Fork 501
Description
Before opening a feature request against this repo, consider whether the feature should/could be implemented in the other OpenTelemetry client libraries. If so, please open an issue on opentelemetry-specification first.
Is your feature request related to a problem?
For now, when start a root span, the sample flag only can control by AlwaysOnSampler or AlwaysOffSampler, it can't pass a sample flag dynamically.
opentelemetry-cpp/sdk/src/trace/tracer.cc
Line 87 in cdee288
| parent_context = opentelemetry::trace::SpanContext{false, false}; |
Describe the solution you'd like
Provide api like IsSample and user can pass the value by key value like is_sample
opentelemetry-cpp/sdk/src/trace/tracer.cc
Line 85 in cdee288
| if (opentelemetry::trace::IsRootSpan(context)) |
Describe alternatives you've considered
Which alternative solutions or features have you considered?
Additional context
Add any other context about the feature request here.
Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.