-
Notifications
You must be signed in to change notification settings - Fork 375
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
Disable Telemetry and Remote Configuration in development environments #3039
Conversation
@delner, do you think we should also set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more specs need to be adjusted, but I really like the approach!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
What does this PR do?
By default, it disables the Telemetry and Remote Configuration background workers, which can send HTTP requests, in any environment that is detected as a development environment. See #3036 for the information about the detection logic.
Motivation
Fixes #2823
ddtrace
can cause the test suite for the application to fail whenddtrace
sends unexpected HTTP requests in the background. These requests are rarely desired and only cause noise add overhead.Additional Notes
It's still possible to enable these features in a development environment by using their respective environment variables.
How to test the change?
Without the agent running, run any project's test suite with
ddtrace
enabled and noticed that there's no warning about Telemetry or Remote Configuration not reaching the agent (because their background workers are not running at all).The same is true for an
irb
orpry
environment.