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

Rails: env var or config option to disable sdk? #52

Open
fajpunk opened this issue Aug 26, 2020 · 5 comments
Open

Rails: env var or config option to disable sdk? #52

fajpunk opened this issue Aug 26, 2020 · 5 comments

Comments

@fajpunk
Copy link

fajpunk commented Aug 26, 2020

I would like to disable the sdk in development environments and other places where there may not be an accessible X-Ray daemon. I'm imagining something similar to this functionality that the Python SDK provides:

https://github.com/aws/aws-xray-sdk-python#disabling-x-ray

@fajpunk
Copy link
Author

fajpunk commented Aug 26, 2020

This would also be useful for running rake tasks that don't have an HTTP request associated with them to avoid the ERROR -- : can not find the current context error messages in the logs

@fajpunk
Copy link
Author

fajpunk commented Aug 26, 2020

And for running unit tests that go through Active Record to interact with the database.

@srprash
Copy link
Contributor

srprash commented Sep 8, 2020

Hi @fajpunk
We appreciate you opening this issue. The support for disabling the SDK for testing purposes is on our backlog. We'll try to prioritize it as soon as possible.
Will keep you posted. Please stay tuned.
Thanks!

@srprash
Copy link
Contributor

srprash commented Nov 9, 2020

Hi @fajpunk
For now, to avoid the context missing error messages in the logs, you can set the context_missing: 'IGNORE_ERROR' in the recorder configuration.

@duckworth
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants