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

Decouple the logic of dispatching events from receivers #232

Merged
merged 5 commits into from
Jun 1, 2022

Conversation

dxsup
Copy link
Member

@dxsup dxsup commented Jun 1, 2022

Description

I have removed the logic of dispatching events from receivers so that now receivers don't care about the analyzers after the initialization. All changes about dispatching events are limited in the analyzers.
AnalyzerManager now takes a more important responsibility for creating the dispatching logic.

Motivation and Context

In the current implementation, we can't send an event to different analyzers, which is necessary for implementing another metric(TCP connect metrics which I'm working on). This PR allows the receivers to do that.

Test

=== RUN TestNewManager
--- PASS: TestNewManager (0.00s)
PASS

Daxin Wang added 2 commits June 1, 2022 15:35
…nager

Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
@dxsup dxsup requested a review from NeJan2020 June 1, 2022 07:55
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Daxin Wang added 2 commits June 1, 2022 18:03
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
Signed-off-by: Daxin Wang <daxinwang@harmonycloud.cn>
@dxsup dxsup merged commit ca18a11 into KindlingProject:main Jun 1, 2022
@dxsup dxsup deleted the feat/consume-events branch June 1, 2022 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants