Skip to content

Move ENVIRONMENT_AGENT_SETTINGS to class/specs that need it#1930

Merged
ivoanjo merged 1 commit into
masterfrom
ivoanjo/remove-deprecated-usage-of-environment-settings
Mar 21, 2022
Merged

Move ENVIRONMENT_AGENT_SETTINGS to class/specs that need it#1930
ivoanjo merged 1 commit into
masterfrom
ivoanjo/remove-deprecated-usage-of-environment-settings

Conversation

@ivoanjo

@ivoanjo ivoanjo commented Mar 7, 2022

Copy link
Copy Markdown
Member

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

ivoanjo commented Mar 21, 2022

Copy link
Copy Markdown
Member Author

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