svm repo split: fork metrics#7442
Conversation
|
The Firedancer team maintains a line-for-line reimplementation of the |
26de89c to
1e22da1
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7442 +/- ##
=========================================
- Coverage 83.2% 83.2% -0.1%
=========================================
Files 800 804 +4
Lines 362783 363563 +780
=========================================
+ Hits 302195 302774 +579
- Misses 60588 60789 +201 🚀 New features to boost your workflow:
|
|
I see most files are new. Did you simply copy solana-metrics into svm-metrics? Shouldn't we replace all usages in the validator by svm-metrics? |
Yes, it's a fork of the crate. I detailed in the description why I thought it made more sense to fork it. Let me know if it's reasonable. |
Oh, I got it. Is the goal to maintain two separate implementations then? One for Agave and another one for SVM? |
Yep, and we can thin each one out or evolve it based on requirements of each stack. |
Remind me, why can't SVM just depend on the existing Lines 18 to 26 in bc650cf |
I didn't want to end up in a situation like we have with We solved this for SPL with the SDK split-out. We could do the same here for metrics/telemetry, but I wasn't sure it was worth taking on that effort yet. As long as we're emitting the payloads, Grafana should pick it up, right? |
The
solana-metricscrate is a utility lib that's used across the validator to submit datapoints and other telemetry. Likesolana-measure, it's not specific to any one component or domain of Agave, so it doesn't really make sense to live in SVM and have Agave import it.One option, as this PR proposes, is to fork it just like we did with
solana-measurein #7441. This is a pretty simple and reasonable route to take.Another, more involved route is to just reimplement the datapoint module in the program-runtime locally, since it's the only SVM crate that uses
solana-metrics(and just in one spot). However, this has two potential issues:Part of #7317