-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
POTEL 11 - Move sampling logic into OTel Sampler #3462
Conversation
…pes-merge-2-add-scopes
…ainScopes to rootScopes
…l-2-promote-span-attributes
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- POTEL 11 - Move sampling logic into OTel Sampler ([#3462](https://github.com/getsentry/sentry-java/pull/3462)) If none of the above apply, you can opt out of this check by adding |
Performance metrics 🚀
|
} | ||
// TODO [POTEL] what do we use as fallback here? could happen if misconfigured (i.e. sampler | ||
// not in place) | ||
final boolean sampled = samplingDecision != null ? samplingDecision.getSampled() : true; |
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.
Hmm, should we use otelSpan.getSpanContext().isSampled()
as fallback?
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.
Hmm not sure
📜 Description
OTel offers a
Sampler
interface which we now implement to copy sampling decisions or sample using SentryTracesSampler
.💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps