Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Removing start method in favor of on start hook in dogstatsd server component #22584
Removing start method in favor of on start hook in dogstatsd server component #22584
Changes from 12 commits
ef48776
3a9d7e3
66d19f4
6cce5ef
317e15b
7af9b59
23e7aec
7291ab7
438db33
5535958
fa7c83e
854071b
4f2c355
0aae35f
15f5d53
9b9dec7
2538b87
ba45285
be9fd32
fae914f
dc8cf0c
fb6f6e3
c304636
305a864
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Can you explain why you need this as it is not common to provide non component type (except for
Params
type).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.
Since I replaced how a server is started, a new dogstatsd server no longer require a demultiplexer when started anymore. This causes some changes in the test files such as this function. Or any function that used to require the dogstatsdserver to include a demultiplexer.
Doing this provide a mock implementation instead of an actual component for those tests.
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.
Instead of using
aggregator.Demultiplexer
can you usedemultiplexer.Component
?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.
Here when
start
returns an error the application logs the error whereas with your changes the application stops. Is this behavior expected?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.
I changed the logic a bit here now so that when the server is running/stopped, it will log similarly instead. Good Catch! 🙇🏼♂️