From 9f7071b9ee0dc89401eedd733e12e57a5697d93f Mon Sep 17 00:00:00 2001 From: Eric Bittleman Date: Wed, 5 Sep 2018 10:53:38 -0400 Subject: [PATCH] Default sampling_req in LocalSampler to None --- aws_xray_sdk/core/sampling/local/sampler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws_xray_sdk/core/sampling/local/sampler.py b/aws_xray_sdk/core/sampling/local/sampler.py index 469c41ed..fe524294 100644 --- a/aws_xray_sdk/core/sampling/local/sampler.py +++ b/aws_xray_sdk/core/sampling/local/sampler.py @@ -50,7 +50,7 @@ def __init__(self, rules=local_sampling_rule): self.load_local_rules(rules) self._random = Random() - def should_trace(self, sampling_req): + def should_trace(self, sampling_req=None): """ Return True if the sampler decide to sample based on input information and sampling rules. It will first check if any