-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
ext_proc: change default sampling to false inheriting from parent decision #37794
Conversation
Signed-off-by: Fernando Cainelli <[email protected]>
/retest |
Signed-off-by: Fernando Cainelli <[email protected]>
Signed-off-by: Fernando Cainelli <[email protected]>
bool finished_; | ||
bool context_injected_{false}; | ||
bool sampled_{false}; | ||
bool finished_{false}; |
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.
I noticed there are still some flake tests in CI and wonder if might be it.
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.
Do you mean this PR should fix the flakiness. Or do you mean there are still some flakiness with this PR
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.
The first commit in this PR failed with flake test, after initializing the variables here it looks good.
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.
SG, thanks for clarification.
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.
LGTM, Thank you
bool finished_; | ||
bool context_injected_{false}; | ||
bool sampled_{false}; | ||
bool finished_{false}; |
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.
Do you mean this PR should fix the flakiness. Or do you mean there are still some flakiness with this PR
@tyxia would you need an extra reviewer before merging? |
Commit Message: ext_proc: change default sampling decision to false
Fixes: #37783
Additional Description: Default to using the parent span's sampled status instead of true (default in StreamOptions), so that we don't emit orphan spans for all ext_proc streams where the parent span is not sampled. That's the same issue seen in Lua httpCall (#33200) and ext_authz (#19343).
Risk Level: Low
Testing: changed the tracing integration test behavior and validated in production.