Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Sampler sampling_req to None #82

Merged
merged 1 commit into from
Aug 29, 2018

Conversation

mjtieman
Copy link
Contributor

@mjtieman mjtieman commented Aug 29, 2018

Issue #81

Description of changes:

Currently, sampling_req is a required argument for DefaultSampler.should_trace. This results in an exception when AWSXRayRecorder.begin_segment invokes the sampler's should_trace without any arguments.

This change defaults sampling_req to None, which allows the downstream None checks to properly handle this case.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@haotianw465 haotianw465 merged commit 0199e15 into aws:master Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants