@@ -525,20 +525,20 @@ instance ( LogFormatting (Header blk)
525
525
asMetrics (ChainDB. SwitchedToAFork _warnings selChangedInfo _oldChain newChain) =
526
526
let ChainInformation { slots, blocks, density, epoch, slotInEpoch } =
527
527
chainInformation selChangedInfo newChain 0
528
- in [ DoubleM " ChainDB.Density " (fromRational density)
529
- , IntM " ChainDB.SlotNum " (fromIntegral slots)
530
- , IntM " ChainDB.BlockNum " (fromIntegral blocks)
531
- , IntM " ChainDB.SlotInEpoch " (fromIntegral slotInEpoch)
532
- , IntM " ChainDB.Epoch " (fromIntegral (unEpochNo epoch))
528
+ in [ DoubleM " density " (fromRational density)
529
+ , IntM " slotNum " (fromIntegral slots)
530
+ , IntM " blockNum " (fromIntegral blocks)
531
+ , IntM " slotInEpoch " (fromIntegral slotInEpoch)
532
+ , IntM " epoch " (fromIntegral (unEpochNo epoch))
533
533
]
534
534
asMetrics (ChainDB. AddedToCurrentChain _warnings selChangedInfo _oldChain newChain) =
535
535
let ChainInformation { slots, blocks, density, epoch, slotInEpoch } =
536
536
chainInformation selChangedInfo newChain 0
537
- in [ DoubleM " ChainDB.Density " (fromRational density)
538
- , IntM " ChainDB.SlotNum " (fromIntegral slots)
539
- , IntM " ChainDB.BlockNum " (fromIntegral blocks)
540
- , IntM " ChainDB.SlotInEpoch " (fromIntegral slotInEpoch)
541
- , IntM " ChainDB.Epoch " (fromIntegral (unEpochNo epoch))
537
+ in [ DoubleM " density " (fromRational density)
538
+ , IntM " slotNum " (fromIntegral slots)
539
+ , IntM " blockNum " (fromIntegral blocks)
540
+ , IntM " slotInEpoch " (fromIntegral slotInEpoch)
541
+ , IntM " epoch " (fromIntegral (unEpochNo epoch))
542
542
]
543
543
asMetrics _ = []
544
544
@@ -638,48 +638,48 @@ instance MetaTrace (ChainDB.TraceAddBlockEvent blk) where
638
638
detailsFor _ _ = Just DNormal
639
639
640
640
metricsDocFor (Namespace _ [" SwitchedToAFork" ]) =
641
- [ ( " ChainDB.Density "
641
+ [ ( " density "
642
642
, mconcat
643
643
[ " The actual number of blocks created over the maximum expected number"
644
644
, " of blocks that could be created over the span of the last @k@ blocks."
645
645
]
646
646
)
647
- , ( " ChainDB.SlotNum "
647
+ , ( " slotNum "
648
648
, " Number of slots in this chain fragment."
649
649
)
650
- , ( " ChainDB.Blocks "
650
+ , ( " blockNum "
651
651
, " Number of blocks in this chain fragment."
652
652
)
653
- , ( " ChainDB.SlotInEpoch "
653
+ , ( " slotInEpoch "
654
654
, mconcat
655
655
[ " Relative slot number of the tip of the current chain within the"
656
656
, " epoch.."
657
657
]
658
658
)
659
- , ( " ChainDB.Epoch "
659
+ , ( " epoch "
660
660
, " In which epoch is the tip of the current chain."
661
661
)
662
662
]
663
663
metricsDocFor (Namespace _ [" AddedToCurrentChain" ]) =
664
- [ ( " ChainDB.Density "
664
+ [ ( " density "
665
665
, mconcat
666
666
[ " The actual number of blocks created over the maximum expected number"
667
667
, " of blocks that could be created over the span of the last @k@ blocks."
668
668
]
669
669
)
670
- , ( " ChainDB.SlotNum "
670
+ , ( " slotNum "
671
671
, " Number of slots in this chain fragment."
672
672
)
673
- , ( " ChainDB.Blocks "
673
+ , ( " blockNum "
674
674
, " Number of blocks in this chain fragment."
675
675
)
676
- , ( " ChainDB.SlotInEpoch "
676
+ , ( " slotInEpoch "
677
677
, mconcat
678
678
[ " Relative slot number of the tip of the current chain within the"
679
679
, " epoch.."
680
680
]
681
681
)
682
- , ( " ChainDB.Epoch "
682
+ , ( " epoch "
683
683
, " In which epoch is the tip of the current chain."
684
684
)
685
685
]
0 commit comments