-
Notifications
You must be signed in to change notification settings - Fork 44
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
Monitoring improvements #52
Conversation
826f164
to
c9f9d3f
Compare
d840827
to
a19db50
Compare
e5ea247
to
d8599d1
Compare
data, err := s.reader.Read(ctx, s.account) | ||
var data interface{} | ||
var err error | ||
func() { |
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.
Why this pattern?
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.
So I can defer cancel()
which ensures it will be executed even if Read panics!
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.
Defer cancel should always run since you call it before the read. Don't understand the difference of wrapping into a func
-, move to a separate package - remove flags and json, only using env vars - add validation - add feature flags, configurable poll interval and timout for solana and rdd
as fixes for the cases that don't work
…wards compatibility
5d31a06
to
78efcf5
Compare
@pedrovsg @johnnymugs I rebased on develop and this is now ready for another review |
* Remove namespace from metrics. Also add feed_id as a label to all metrics * fix bad rebase
remove dependency onNot atmcore/logging
add module to follow weiwatcher changes on feeds and restartDoing this in a separate PR