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

Made setting context modes idempotent #371

Merged
merged 2 commits into from
Jan 6, 2021

Conversation

willarmiros
Copy link
Contributor

Issue #, if available:
#366

Description of changes:
We appeared to be using the incorrect getNamespace method in our enableAutomaticMode and enableManualMode functions. Now enableAutomaticMode will check for an existing namespace before creating a new one, and enableManualMode will only destroy the namespace if one exists (as opposed to potentially creating then immediately destroying a namespace like it does now). So this change will ensure that redundant calls to either method don't have an effect.

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

@willarmiros willarmiros merged commit fde3a87 into aws:master Jan 6, 2021
@willarmiros willarmiros deleted the enableAutoMode branch January 6, 2021 17:31
EkeMinusYou pushed a commit to EkeMinusYou/aws-xray-sdk-node that referenced this pull request Jan 28, 2021
* made setting context modes idempotent

* this is why you run tests before committing them
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.

None yet

2 participants