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

Cherry-pick #8091 to 6.x: Publisher pipeline: pass logger and metrics registry #8147

Merged
merged 1 commit into from
Oct 22, 2018

Conversation

urso
Copy link

@urso urso commented Aug 29, 2018

Cherry-pick of PR #8091 to 6.x branch. Original message:

We should strive to not have dependencies on globals in beats. The
publisher pipeline rewrite made sure we don't work with globals
internally. Yet some globals have been introduced since, and even though
the library didn't use globals internally, initialization still did use
globals at some points.
This change removes globals for logging/metrics/telemetry, by requiring
the beat instance to pass down required instances.

@urso urso force-pushed the backport_8091_6.x branch from 8fa8415 to 62b8734 Compare August 29, 2018 19:06
@urso urso requested review from ruflin and ph August 29, 2018 19:06
@urso
Copy link
Author

urso commented Aug 30, 2018

Jenkins test this please.

We should strive to not have dependencies on globals in beats. The
publisher pipeline rewrite made sure we don't work with globals
internally. Yet some globals have been introduced since, and even though
the library didn't use globals internally, initialization still did use
globals at some points.
This change removes globals for logging/metrics/telemetry, by requiring
the beat instance to pass down required instances.

(cherry picked from commit 8c15e6e)
@urso urso force-pushed the backport_8091_6.x branch from 62b8734 to 08d970a Compare October 19, 2018 16:12
Copy link
Contributor

@exekias exekias left a comment

Choose a reason for hiding this comment

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

WFG

@exekias
Copy link
Contributor

exekias commented Oct 21, 2018

Let's get this one in first, as I guess #8657 will conflict

@urso urso merged commit cf09452 into elastic:6.x Oct 22, 2018
@urso urso deleted the backport_8091_6.x branch February 19, 2019 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants