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

Fix #configure forcing all options to eager load #1034

Merged
merged 3 commits into from
May 11, 2020

Conversation

delner
Copy link
Contributor

@delner delner commented May 8, 2020

Fixes #1032

When configuring, Contrib::Configuration::Settings were effectively eager loading their configuration options in dependency order, which lead to unintended side effects like caching settings that were unwanted.

This pull request removes the eager evaluation so that values do not erroneously cache.

@delner delner force-pushed the fix/configure_eager_loading_lazy_vars branch from 2d50cbf to 743ac79 Compare May 8, 2020 22:53
@delner delner force-pushed the fix/configure_eager_loading_lazy_vars branch from 743ac79 to ec7e7c8 Compare May 8, 2020 23:23
@delner delner marked this pull request as ready for review May 8, 2020 23:24
@delner delner requested review from a team and marcotc May 8, 2020 23:24
@delner delner self-assigned this May 8, 2020
@delner delner added bug Involves a bug community Was opened by a community member integrations Involves tracing integrations core Involves Datadog core libraries and removed integrations Involves tracing integrations labels May 8, 2020
Copy link
Member

@marcotc marcotc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@delner delner merged commit a10aafa into master May 11, 2020
marcotc pushed a commit that referenced this pull request May 11, 2020
…y_vars

Fix #configure forcing all options to eager load
@marcotc marcotc added this to the 0.35.2 milestone May 11, 2020
@delner delner linked an issue May 12, 2020 that may be closed by this pull request
@delner delner deleted the fix/configure_eager_loading_lazy_vars branch May 13, 2020 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug community Was opened by a community member core Involves Datadog core libraries
Projects
None yet
2 participants