in lib/aws-xray-sdk/sampling/local/sampling_rule.rb [44:61]
def validate
if @fixed_target < 0 || @rate < 0
raise InvalidSamplingConfigError, 'All rules must have non-negative values for fixed_target and rate.'
end
if @default
if @host || @method || @path
raise InvalidSamplingConfigError, 'The default rule must not specify values for url_path, service_name, or http_method.'
end
else
unless @host && @method && @path
raise InvalidSamplingConfigError, 'All non-default rules must have values for url_path, service_name, and http_method.'
end
end
end