-
Notifications
You must be signed in to change notification settings - Fork 287
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
Chain validation metric #363
base: develop
Are you sure you want to change the base?
Chain validation metric #363
Conversation
gossip/c_event_callbacks.go
Outdated
// aBFT processing | ||
return s.engine.Process(e) | ||
err = s.engine.Process(e) |
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.
Can you explain why we need to do this refactoring?
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.
We don't need it )
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.
LGTM
gossip/c_block_callbacks.go
Outdated
_ = metrics.GetOrRegisterMeter("chain/reorg/executes", nil) | ||
_ = metrics.GetOrRegisterMeter("chain/reorg/add", nil) | ||
_ = metrics.GetOrRegisterMeter("chain/reorg/drop", nil) | ||
_ = metrics.GetOrRegisterMeter("chain/reorg/invalidTx", nil) |
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.
@rus-alex what is the point in adding metrics, which will be unused?
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.
The point is to show the same set of metrics like geth. As I remember it was a one of #290 goals.
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.
I agree we should add as much metrics from geth as we can, however if we cannot fill the metric with any data and we create it unused, it seems useless to me - is there some usecase which needs them to be present, even through they will have no meaningful value?
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.
It is just method to say: we didn't forget implemented such metrics and they better than geth's.
Agreed, it is overmach.
Here is the set of geth compatible metrics:
( it is an adaptation of #290 after #358 )