-
Notifications
You must be signed in to change notification settings - Fork 144
disable xray at runtime #172
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
Comments
Hi, As long as the environment variable By disabling the SDK, the code path should never reach the emitter, which leads me to believe that you are hitting an edge case. Are you making sure that the env variable If this doesn't resolve your issue, can you also post a copy of what log errors you are seeing? Thanks, |
I wonder this behavior of the SDK. I expect that setting the the config from my program overrides the values from the environment values. For example, I can do it with botocore.
an example from the document of botocore.
The config precedence of X-Ray-SDK is not match with botocore. |
According to the documentation:
The order of precedence is Env Variables > Programatic configuration. We can take this as a feature request to change the ordering, but this is added by design so that customers can override programmatic behaviors when they for example write test code. |
On my django project, xray is configured to trace db queries.
In this use casem is it possible to disable / re-enable xray at runtime? What I want to do is,
When I run the code like this, I still get error logs from xray (and my main problem is addressed here: #21 , but the suggested solution did not solve the issue for me)
And I could not understand from the docs whether
global_sdk_config.set_sdk_enabled(False)
would disable xray at runtime or if it was designed to disable xray before running an application.
The text was updated successfully, but these errors were encountered: