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

api: allow tracing sampleRate smaller than 1% #5096

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

zirain
Copy link
Member

@zirain zirain commented Jan 19, 2025

xref: #5089

@zirain zirain requested a review from a team as a code owner January 19, 2025 11:35
Copy link

codecov bot commented Jan 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.84%. Comparing base (42ae06d) to head (cef658c).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5096      +/-   ##
==========================================
+ Coverage   66.77%   66.84%   +0.06%     
==========================================
  Files         210      210              
  Lines       32957    32957              
==========================================
+ Hits        22006    22029      +23     
+ Misses       9613     9597      -16     
+ Partials     1338     1331       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
@zirain zirain force-pushed the tracing-sampling-fraction branch from e0d2140 to cef658c Compare January 20, 2025 05:46
type ProxyTracing struct {
// SamplingRate controls the rate at which traffic will be
// selected for tracing if no prior sampling decision has been made.
// Defaults to 100, valid values [0-100]. 100 indicates 100% sampling.
//
// Only one of SamplingRate or SamplingFraction may be specified.
// If neither field is specified, 1% of requests will be sampled.
Copy link
Contributor

Choose a reason for hiding this comment

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

is this default 1% sampling already happening today ?

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@arkodg arkodg requested review from a team January 21, 2025 22:03
@arkodg arkodg modified the milestones: v1.3.0, v1.3.0-rc.1 Jan 21, 2025
@arkodg arkodg merged commit b4c9d7a into envoyproxy:main Jan 21, 2025
28 checks passed
@zirain zirain deleted the tracing-sampling-fraction branch January 21, 2025 23:04
EshaanAgg pushed a commit to EshaanAgg/gateway that referenced this pull request Jan 22, 2025
* api: allow tracing sampleRate smaller than 1%

Signed-off-by: zirain <[email protected]>
Signed-off-by: EshaanAgg <[email protected]>
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.

3 participants