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

Move ENVIRONMENT_AGENT_SETTINGS to class/specs that need it #1930

Merged

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Mar 7, 2022

The ENVIRONMENT_AGENT_SETTINGS constant was introduced to support a few classes/specs that needed an agent_settings object to fall back to.

Since there are so little users of this constant (which is good), let's remove it from the AgentSettingsResolver class and instead move it to the class/specs that make use of it.

This way, the weight of legacy/weird behavior is on the classes that need it, rather than on the AgentSettingsResolver class.

The `ENVIRONMENT_AGENT_SETTINGS` constant was introduced to support
a few classes/specs that needed an `agent_settings` object  to fall
back to.

Since there are so little users of this constant (which is good),
let's remove it from the `AgentSettingsResolver` class and instead
move it to the class/specs that make use of it.

This way, the weight of legacy/weird behavior is on the classes that
need it, rather than on the `AgentSettingsResolver` class.
@ivoanjo ivoanjo requested review from a team and lloeki March 7, 2022 11:32
@delner delner added core Involves Datadog core libraries dev/refactor Involves refactoring existing components labels Mar 18, 2022
@delner delner added this to the 1.0.0.beta2 milestone Mar 18, 2022
@ivoanjo
Copy link
Member Author

ivoanjo commented Mar 21, 2022

Thanks y'all, merging ahoy!

@ivoanjo ivoanjo merged commit 51a3b8e into master Mar 21, 2022
@ivoanjo ivoanjo deleted the ivoanjo/remove-deprecated-usage-of-environment-settings branch March 21, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Involves Datadog core libraries dev/refactor Involves refactoring existing components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants