module XRay::Sampler
The sampler interface that calculates if a segment should be sampled or not upon creation based on the sampling rules it holds. It doesn't respect sampling decision from upstream.
Public Instance Methods
sample?()
click to toggle source
Sample purely based on cached sampling rules without any incoming rules matching information.
# File lib/aws-xray-sdk/sampling/sampler.rb, line 15 def sample? raise 'Not implemented' end
sample_request?(sampling_req:)
click to toggle source
Decides if a segment should be sampled for an incoming request. Used in case of middleware.
# File lib/aws-xray-sdk/sampling/sampler.rb, line 9 def sample_request?(sampling_req:) raise 'Not implemented' end
sampling_rules()
click to toggle source
# File lib/aws-xray-sdk/sampling/sampler.rb, line 23 def sampling_rules raise 'Not implemented' end
sampling_rules=(v)
click to toggle source
# File lib/aws-xray-sdk/sampling/sampler.rb, line 19 def sampling_rules=(v) raise 'Not implemented' end