SamplingRule
¶
Used by
-
AsyncXRayClient Operationscreate_sampling_rule -
XRayClient Operationscreate_sampling_rule
Source code in docs_src/capo_xray/types/sampling_rule.py
attributes
instance-attribute
¶
attributes: NotRequired[AttributeMap]
Matches attributes derived from the request.
fixed_rate
instance-attribute
¶
fixed_rate: FixedRate
The percentage of matching requests to instrument, after the reservoir is exhausted.
reservoir_size
instance-attribute
¶
reservoir_size: ReservoirSize
A fixed number of matching requests to instrument per second, prior to applying the fixed rate. The reservoir is not used directly by services, but applies to all services using the rule collectively.
resource_arn
instance-attribute
¶
resource_arn: ResourceARN
Matches the ARN of the Amazon Web Services resource on which the service runs.
rule_arn
instance-attribute
¶
rule_arn: NotRequired[String]
The ARN of the sampling rule. Specify a rule by either name or ARN, but not both.
rule_name
instance-attribute
¶
rule_name: NotRequired[RuleName]
The name of the sampling rule. Specify a rule by either name or ARN, but not both.
sampling_rate_boost
instance-attribute
¶
sampling_rate_boost: NotRequired[SamplingRateBoost]
Specifies the multiplier applied to the base sampling rate. This boost allows you to temporarily increase sampling without changing the rule's configuration.
service_name
instance-attribute
¶
service_name: ServiceName
Matches the name that the service uses to identify itself in segments.
service_type
instance-attribute
¶
service_type: ServiceType
Matches the origin that the service uses to identify its type in segments.