File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,18 @@ To turn off sampling, use code like the following::
1616 from aws_xray_sdk.core import xray_recorder
1717 xray_recorder.configure(sampling=False)
1818
19- You can also configure the sampling rules::
19+ By default, the SDK uses sampling rules configured in your AWS account. You can also configure the backup sampling rules locally ::
2020
2121 xray_recorder.configure(sampling_rules=your_rules)
2222
2323The input can either be an absolute path to your sampling rule
2424*.json * file or a dictionary.
2525
26+ To use only local rules for sampling, configure the recorder with a ``LocalSampler ``::
27+
28+ from aws_xray_sdk.core.sampling.local.sampler import LocalSampler
29+ xray_recorder.configure(sampler=LocalSampler())
30+
2631The following code is an example of a rule configuration::
2732
2833 {
You can’t perform that action at this time.
0 commit comments