Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Emit VRT supply in cranker #174

wants to merge 8 commits into from

Conversation

ebatsell
Copy link
Contributor

No description provided.

crankers/src/metrics.rs Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.70%. Comparing base (3fdcd88) to head (d5c4315).

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.
📢 Have feedback on the report? Share it here.

"restaking-vault-supply",
("slot", slot as i64, i64),
("slot_index", slot_index as i64, i64),
("vault", address.to_string(), String),
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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),
            ...);

Copy link
Contributor

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

Copy link
Contributor

@coachchucksol coachchucksol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

("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),
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants