Skip to content
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

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

cainelli
Copy link
Contributor

@cainelli cainelli commented Dec 23, 2024

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.

Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #37794 was opened by cainelli.

see: more, trace.

@cainelli cainelli changed the title ext_proc: change default sampling decision to false ext_proc: change default sampling to false inheriting from parent decision Dec 23, 2024
@cainelli
Copy link
Contributor Author

/retest

@cainelli cainelli marked this pull request as ready for review December 23, 2024 16:32
bool finished_;
bool context_injected_{false};
bool sampled_{false};
bool finished_{false};
Copy link
Contributor Author

@cainelli cainelli Dec 23, 2024

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.

Copy link
Member

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

Copy link
Contributor Author

@cainelli cainelli Jan 6, 2025

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG, thanks for clarification.

Copy link
Member

@tyxia tyxia left a 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};
Copy link
Member

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

@cainelli
Copy link
Contributor Author

cainelli commented Jan 8, 2025

@tyxia would you need an extra reviewer before merging?

@tyxia tyxia merged commit f213d16 into envoyproxy:main Jan 8, 2025
24 checks passed
@cainelli cainelli deleted the extproc-tracing-sampling branch January 8, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ext_proc: GRPC tracing requests are always sampled regardless of the parent decision
2 participants