-
Notifications
You must be signed in to change notification settings - Fork 22
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
Emit VRT supply in cranker #174
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #174 +/- ##
=======================================
Coverage 80.70% 80.70%
=======================================
Files 91 91
Lines 9944 9944
=======================================
Hits 8025 8025
Misses 1919 1919 ☔ View full report in Codecov by Sentry. |
crankers/src/metrics.rs
Outdated
"restaking-vault-supply", | ||
("slot", slot as i64, i64), | ||
("slot_index", slot_index as i64, i64), | ||
("vault", address.to_string(), String), |
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.
"vault" => address.to_string() so vault is a tag
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 would the full tuple look like then?
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 think you can do:
datapoint_info!(
"restaking-vault-supply",
"vault" => address.to_string(),
("slot", slot as i64, i64),
...);
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 do the same with vrt_mint too
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
crankers/src/metrics.rs
Outdated
("slot", slot as i64, i64), | ||
("slot_index", slot_index as i64, i64), | ||
("vault", address.to_string(), String), | ||
("vrt_mint", vault.vrt_mint.to_string(), String), |
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.
Do we also want ST supply?
No description provided.