-
Notifications
You must be signed in to change notification settings - Fork 274
Expose trace sampling controls in the public API #375
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
2c4373d
33e1cea
2ebd52a
5f4defe
6938a37
bec964a
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 |
|---|---|---|
|
|
@@ -80,6 +80,23 @@ message HttpConnectionManager { | |
| // populate the tag name, and the header value is used to populate the tag value. The tag is | ||
| // created if the specified header name is present in the request's headers. | ||
| repeated string request_headers_for_tags = 2; | ||
|
|
||
| // Target percentage of requests managed by this HTTP connectionmanager that will be force | ||
| // traced if the *x-client-trace-id* header is set. Defaults to 100%. This variable is a direct | ||
| // analog for the variable of the same name in the :ref:`HTTP Connection Manager | ||
| // <config_http_conn_man_runtime>`. | ||
| double client_sampling = 3 [(validate.rules).double = {gte: 0, lte: 100}]; | ||
|
|
||
| // Target percentage of requests managed by this HTTP connection manager that will be traced | ||
| // after all other checks have been applied (force tracing, sampling, etc.). Defaults to 100%. | ||
| // This variable is a direct analog for the variable of the same name in the :ref:`HTTP | ||
| // Connection Manager <config_http_conn_man_runtime>`. | ||
| double sampling = 4 [(validate.rules).double = {gte: 0, lte: 100}]; | ||
|
Member
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 you start a |
||
|
|
||
| // Target percentage of requests managed by this HTTP connection manager that will be randomly | ||
| // traced. Defaults to 100%. This variable is a direct analog for the variable of the same name | ||
| // in the :ref:`HTTP Connection Manager <config_http_conn_man_runtime>`. | ||
| HundredthsRoundedPercent random_sampling = 5; | ||
| } | ||
|
|
||
| // Presence of the object defines whether the connection manager | ||
|
|
||
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 think we should do the following:
Percentmessage, which enforced [0..100] range and is backed bydouble.