Module Values.CreateSamplingRuleRequestSource

Creates 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.

Sourcetype nonrec t = {
  1. samplingRule : SamplingRule.t;
    (*

    The rule definition.

    *)
  2. tags : TagList.t option;
    (*

    A map that contains one or more tag keys and tag values to attach to an X-Ray sampling rule. For more information about ways to use tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. The following restrictions apply to tags: Maximum number of user-applied tags per resource: 50 Maximum tag key length: 128 Unicode characters Maximum tag value length: 256 Unicode characters Valid values for key and value: a-z, A-Z, 0-9, space, and the following characters: _ . : / = + - and @ Tag keys and values are case sensitive. Don't use aws: as a prefix for keys; it's reserved for Amazon Web Services use.

    *)
}
Sourceval context_ : string
Sourceval make : ?tags:??? -> samplingRule:SamplingRule.t -> unit -> t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t