-
Notifications
You must be signed in to change notification settings - Fork 77
Conversation
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
|
||
// UpdatePrice price updates the price for the given pairID for the provider. | ||
UpdatePrice(name, handlerType, pairID string, price float64) | ||
|
||
// UpdateAggregatePrice rice updates the aggregated price for the given pairID. | ||
UpdateAggregatePrice(pairID string, price float64) | ||
} |
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 would probably add one more metric here something like
AddPriceIncluded(name, handlertype, pairID, true/false)
this way we can track what price feeds are too stale in terms of how often they end up being consumed by the aggregator.
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.
won't the timestamps of the updates being pushed to the db show us how stale they are?
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.
yea
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.
good point just ship
Closes BLO-803
GetResult
interface (alias forfmt.Stringer
) as a type restriction for our generic code