onflow / flow-go

A fast, secure, and developer-friendly blockchain built to support the next generation of games, apps, and the digital assets that power them.
GNU Affero General Public License v3.0
533 stars 178 forks source link

Unit test to check emission of telemetry events #4520

Open AlexHentschel opened 1 year ago

AlexHentschel commented 1 year ago

Context

During the last upgrade, the consensus telemetry did not receive any of the CommunicatorConsumer events nor the FinalizationConsumer events. I tracked this problem back to the TelemetryConsumer not being subscribed to sections of the distributor (see PR #4518 for the fix).

Resulting Problem

Metrika's node agent is ingesting a variety of Telemetry events (at the moment, they do this by scraping the logs for entries with the hotstuff.telemetry keyword):

On the one hand, we have unit tests that verify that the respective components correctly publish those events by handing them into the injected pub-sub distributor. However, we have no integration tests that verify that these events are correctly propagated to the TelemetryConsumer

Goal:

My thoughts on priority and time investment:

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.