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

More events for observability #732

Merged
merged 3 commits into from
Mar 1, 2024
Merged

More events for observability #732

merged 3 commits into from
Mar 1, 2024

Conversation

cryptoAtwill
Copy link
Contributor

Adding more events for:

  1. Query span
  2. Block proposal rejection/acceptance

Copy link

linear bot commented Feb 21, 2024

Comment on lines 680 to 681
hash = request.hash.to_string(),
proposer = request.proposer_address.to_string()
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason we don't add these fields to the accepted event as well? We could refactor this into a single emit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking we dont really care who proposed it if accepted, we can get that from cometbft. But reject, we might want to know who. As for two events, I think it was because it's tracked as two events so no extra filtering needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

For diagnostics, it's useful to know who you accepted a proposal from explicitly. That allows you to identify patterns when performing diagnostics/forensics. Also: let's err on the side of spitting out more information, we can always reduce the verbosity later. It also simplifies the code and involves less entropy.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Contributor

@fridrik01 fridrik01 left a comment

Choose a reason for hiding this comment

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

LGTM

@cryptoAtwill cryptoAtwill merged commit 0df894a into main Mar 1, 2024
17 checks passed
@cryptoAtwill cryptoAtwill deleted the eng-657-more-event branch March 1, 2024 09:40
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.

3 participants