-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
chore: include slot in publish to topic log #6662
Conversation
@@ -408,7 +408,7 @@ export class Network implements INetwork { | |||
}; | |||
const sentPeers = await this.core.publishGossip(topicStr, messageData, opts); | |||
|
|||
this.logger.verbose("Publish to topic", {topic: topicStr, sentPeers}); | |||
this.logger.verbose("Publish to topic", {topic: topicStr, sentPeers, slot: this.clock.currentSlot}); |
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.
Not every message includes a slot, e.g. voluntary exit or bls to execution change, that's why I opted to use the clock slot instead when the message was published.
To clarify this, we could also do clockSlot: this.clock.currentSlot
or currentSlot: this.clock.currentSlot
, but curious what others think
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.
Personally think the clarification of clockSlot
or other might be helpful here.
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.
currentSlot
seems to be the more commonly used, and I think we only use it for the current slot in terms of time-based, whereas slot
could be message slot or time-based slot
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #6662 +/- ##
============================================
- Coverage 61.81% 61.80% -0.02%
============================================
Files 556 556
Lines 59050 59073 +23
Branches 1898 1898
============================================
+ Hits 36502 36508 +6
- Misses 22505 22522 +17
Partials 43 43 |
Performance Report✔️ no performance regression detected 🚀🚀 Significant benchmark improvement detected
Full benchmark results
|
🎉 This PR is included in v1.18.0 🎉 |
Motivation
Make publish to topic logs searchable by slot
Description
Include slot in publish to topic log