Commit 4b172bf
authored
Fixed finalize/roothash metrics (#812)
## 📝 Summary
Metrics were wrong since finalize_adjust_time and finalize_time were
always updated no matter if it was the first finalize call or an update.
Not we differentiate the cases and combined the metrics in a single one
with a label "mode".
Did the same differentiation for root hash times (label "mode") so we
can tell the difference between the first root hash and an adjustment.
## ✅ I have completed the following steps:
* [X] Run `make lint`
* [X] Run `make test`
* [ ] Added tests (if applicable)1 parent 6ad2507 commit 4b172bf
File tree
2 files changed
+27
-15
lines changed- crates/rbuilder/src
- building/builders
- telemetry/metrics
2 files changed
+27
-15
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
| 321 | + | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| |||
468 | 470 | | |
469 | 471 | | |
470 | 472 | | |
| 473 | + | |
471 | 474 | | |
472 | 475 | | |
473 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
| |||
342 | 354 | | |
343 | 355 | | |
344 | 356 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 357 | + | |
| 358 | + | |
353 | 359 | | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
357 | 363 | | |
358 | | - | |
| 364 | + | |
359 | 365 | | |
360 | 366 | | |
361 | 367 | | |
| |||
504 | 510 | | |
505 | 511 | | |
506 | 512 | | |
| 513 | + | |
507 | 514 | | |
508 | 515 | | |
509 | 516 | | |
510 | 517 | | |
511 | 518 | | |
512 | 519 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
518 | 527 | | |
519 | | - | |
| 528 | + | |
520 | 529 | | |
521 | 530 | | |
522 | 531 | | |
| |||
0 commit comments