-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat: add/refactor port 8123 telemetry in zetalient #709
Conversation
move constructor out of NewTSS; add lastStartTimestamp add lastScannedBlock on each chain
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.
A couple questions about the SetCoreBlockNumber function and why /pending was excluded
router.HandleFunc("/debug/pprof/", pprof.Index) | ||
router.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) | ||
|
||
//router.Handle("/pending", http.HandlerFunc(t.pendingHandler)).Methods(http.MethodGet) |
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.
Is this for pending CCTXs? Why not include 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.
Our rpc improved so pending txs can be queried form node rpc efficiently. This is no longer needed.
func (t *TelemetryServer) SetCoreBlockNumber(blockNumber int64) { | ||
t.mu.Lock() | ||
t.lastCoreBlockNumber = blockNumber | ||
t.mu.Unlock() | ||
} | ||
|
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.
What is this function for? Does it cause zetaclient to rescan older blocks?
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 see now there is no routing. At first I thought this was something you could hit externally via the 8123 endpoint
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.
this is a setter to feed info into telemetry server.
move constructor out of NewTSS;
add lastStartTimestamp
add lastScannedBlock on each chain
add lastCoreBlock on zetacore
closes #682 #699
added telemetry items:
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Closes:
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.
Checklist: