-
Notifications
You must be signed in to change notification settings - Fork 815
feat: support client and overall tracing sampling #9402
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
Changes from all commits
26b872f
3764371
6cfae1b
cbf1eba
c9adef9
4390d77
5df7926
95843d9
84502c7
8d1e2af
e91bbff
6681db3
63c42d4
e2124f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -947,6 +947,18 @@ type Tracing struct { | |
| // | ||
| // +optional | ||
| SamplingFraction *gwapiv1.Fraction `json:"samplingFraction,omitempty"` | ||
| // ClientSamplingFraction represents the fraction of requests that should be | ||
| // selected for tracing when requested by the client. | ||
| // If unspecified, client-forced tracing is disabled by default and users must | ||
| // set this field to opt in. | ||
| // | ||
| // +optional | ||
| ClientSamplingFraction *gwapiv1.Fraction `json:"clientSamplingFraction,omitempty"` | ||
| // OverallSamplingFraction represents the fraction of requests that should be | ||
| // selected for tracing after all other sampling checks have been applied. | ||
| // | ||
| // +optional | ||
| OverallSamplingFraction *gwapiv1.Fraction `json:"overallSamplingFraction,omitempty"` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we avoid
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’d keep OverallSamplingFraction. ClientSamplingFraction=0 only disables client-triggered tracing via x-client-trace-id, while OverallSamplingFraction is still useful as the final cap on total trace volume across all sampling paths.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok lets keep it, if we think this is a legit use case, my preference would be to set explicit individual rates, vs a global cap, wdyt @envoyproxy/gateway-maintainers
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| // CustomTags defines the custom tags to add to each span. | ||
| // If provider is kubernetes, pod name and namespace are added by default. | ||
| // | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
wdyt @envoyproxy/gateway-maintainers
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.
Asked below about the default value 0
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.
done