Values.CreateSamplingRuleRequestSourceCreates a rule to control sampling behavior for instrumented applications. Services retrieve rules with GetSamplingRules, and evaluate each rule in ascending order of priority for each request. If a rule matches, the service records a trace, borrowing it from the reservoir size. After 10 seconds, the service reports back to X-Ray with GetSamplingTargets to get updated versions of each in-use rule. The updated rule contains a trace quota that the service can use instead of borrowing from the reservoir.
val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of (string * [> `String of TagKey.t ]) list ] list
| `Structure of
(string
* [> `Double of FixedRate.t
| `Integer of Priority.t
| `Map of
([> `String of AttributeKey.t ]
* [> `String of AttributeValue.t ])
list
| `String of RuleName.t
| `Structure of
(string
* [> `Double of MaxRate.t
| `Integer of CooldownWindowMinutes.t ])
list ])
list ])
list ]