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

Add Components#startup! hook #1151

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Conversation

delner
Copy link
Contributor

@delner delner commented Aug 20, 2020

Some parts of Datadog::Configuration::Components require startup (namely worker threads); this pull request adds a Components#startup! method which defines this behavior. It also does some minor refactoring of how components are built/replaced in the configuration cycle (original behavior should be largely unaffected though.)

This hook isn't employed in this PR but will become necessary for profiling and other auto-starting processes.

@delner delner added core Involves Datadog core libraries dev/refactor Involves refactoring existing components labels Aug 20, 2020
@delner delner requested review from marcotc, brettlangdon, ericmustin and a team August 20, 2020 19:33
@delner delner self-assigned this Aug 20, 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 de7b844 into master Aug 20, 2020
@delner delner deleted the refactor/components_startup_hook branch August 20, 2020 20:09
@marcotc marcotc added this to the 0.40.0 milestone Sep 8, 2020
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.

None yet

2 participants