-
Notifications
You must be signed in to change notification settings - Fork 175
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
Missing consensus telemetry events from FinalizationConsumer
and CommunicatorConsumer
#5020
Missing consensus telemetry events from FinalizationConsumer
and CommunicatorConsumer
#5020
Conversation
…all happy-path interfaces are implemented • extended subscriptions of telemetry consumer to receive missing events
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5020 +/- ##
=======================================
Coverage 56.23% 56.23%
=======================================
Files 969 969
Lines 90362 90417 +55
=======================================
+ Hits 50813 50848 +35
- Misses 35764 35777 +13
- Partials 3785 3792 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This is a repeat of #4518, which I obviously forgot to merge 😭 I am trying to address Yurii's suggestion from an earlier PR here here. In a nutshell, Yurii's suggestion was to introduce a type TelemetryConsumer interface {
ParticipantConsumer
CommunicatorConsumer
FinalizationConsumer
VoteCollectorConsumer
TimeoutCollectorConsumer
} I tried this and ran into the following challenges:
I feel that implementing the suggestion would entail possibly wide-spread code changes:
@durkmurder I have tried to address your suggestion in PR #5022. But it entails a lot of changes. Personally, I feel the code becomes a bit cleaner, but that might be very well my personal perception (implementor bias). |
…ts events from `hotstuff.ParticipantConsumer`
I think you are right it's not worth to merge |
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.
🚢
Metrika messaged us via slack saying that there is some lack of data in Mainnet 24:
Digging into the current telemetry events, I found that starting in Mainnet 24, the
TelemetryConsumer
capturesFinalizationConsumer
CommunicatorConsumer
Digging into the code, I found that we are not subscribing the
TelemetryConsumer
to the respective events (neither does theTelemetryConsumer
state that it implements the consumer interface for the respective events).This PR fixes the missing subscription problem.
Back-ported to v0.32 branch: #5021