Skip to content

Commit

Permalink
chore: Make PJM metrics match HK (#2758)
Browse files Browse the repository at this point in the history
As agreed, PJM metrics must match HK 100%. This means we need to
backport everything. `.to_string()` results in `basic_circuits`, whilst
`format!` results in `BasicCircuits`.
  • Loading branch information
EmilLuta authored Aug 28, 2024
1 parent ddfe235 commit faefba2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ impl WitnessGeneratorQueueReporter {
);
}

SERVER_METRICS.witness_generator_jobs_by_round
[&("queued", round.to_string(), protocol_version.to_string())]
SERVER_METRICS.witness_generator_jobs_by_round[&(
"queued",
format!("{:?}", round),
protocol_version.to_string(),
)]
.set(stats.queued as u64);
SERVER_METRICS.witness_generator_jobs_by_round[&(
"in_progress",
round.to_string(),
format!("{:?}", round),
protocol_version.to_string(),
)]
.set(stats.in_progress as u64);
Expand Down

0 comments on commit faefba2

Please sign in to comment.