@@ -1775,8 +1775,9 @@ instance ( tx ~ GenTx blk
1775
1775
[CounterM " Forge.node-is-leader" Nothing ]
1776
1776
asMetrics TraceForgeTickedLedgerState {} = []
1777
1777
asMetrics TraceForgingMempoolSnapshot {} = []
1778
- asMetrics (TraceForgedBlock _slot _ _ _) =
1779
- [CounterM " Forge.forged" Nothing ]
1778
+ asMetrics (TraceForgedBlock slot _ _ _) =
1779
+ [IntM " forgedSlotLast" (fromIntegral $ unSlotNo slot),
1780
+ CounterM " Forge.forged" Nothing ]
1780
1781
asMetrics (TraceDidntAdoptBlock _slot _) =
1781
1782
[CounterM " Forge.didnt-adopt" Nothing ]
1782
1783
asMetrics (TraceForgedInvalidBlock _slot _ _) =
@@ -1875,7 +1876,8 @@ instance MetaTrace (TraceForgeEvent blk) where
1875
1876
metricsDocFor (Namespace _ [" ForgeTickedLedgerState" ]) = []
1876
1877
metricsDocFor (Namespace _ [" ForgingMempoolSnapshot" ]) = []
1877
1878
metricsDocFor (Namespace _ [" ForgedBlock" ]) =
1878
- [(" Forge.forged" , " " )]
1879
+ [(" forgedSlotLast" , " Slot number of the last forged block" ),
1880
+ (" Forge.forged" , " Counter of forged blocks" )]
1879
1881
metricsDocFor (Namespace _ [" DidntAdoptBlock" ]) =
1880
1882
[(" Forge.didnt-adopt" , " " )]
1881
1883
metricsDocFor (Namespace _ [" ForgedInvalidBlock" ]) =
@@ -2256,9 +2258,8 @@ instance MetaTrace (Jumping.TraceEventCsj peer blk) where
2256
2258
\ case
2257
2259
_ -> Namespace [] []
2258
2260
2259
- severityFor ns _ =
2260
- case ns of
2261
- _ -> Nothing
2261
+ severityFor _ns _ =
2262
+ Nothing
2262
2263
2263
2264
documentFor = \ case
2264
2265
Namespace _ _ ->
0 commit comments