@@ -32,9 +32,9 @@ import Cardano.Node.Tracing.Formatting ()
32
32
import Cardano.Node.Tracing.Render
33
33
import Cardano.Node.Tracing.Tracers.ConsensusStartupException ()
34
34
import Cardano.Node.Tracing.Tracers.StartLeadershipCheck
35
- import Cardano.Tracing.OrphanInstances.Network (Verbose (.. ))
36
35
import Cardano.Protocol.TPraos.OCert (KESPeriod (.. ))
37
36
import Cardano.Slotting.Slot (WithOrigin (.. ))
37
+ import Cardano.Tracing.OrphanInstances.Network (Verbose (.. ))
38
38
import Ouroboros.Consensus.Block
39
39
import Ouroboros.Consensus.BlockchainTime (SystemStart (.. ))
40
40
import Ouroboros.Consensus.BlockchainTime.WallClock.Util (TraceBlockchainTimeEvent (.. ))
@@ -1754,37 +1754,37 @@ instance ( tx ~ GenTx blk
1754
1754
])
1755
1755
1756
1756
1757
- asMetrics (TraceStartLeadershipCheck slot ) =
1758
- [IntM " Forge.about-to-lead" ( fromIntegral $ unSlotNo slot) ]
1759
- asMetrics (TraceSlotIsImmutable slot _tipPoint _tipBlkNo) =
1760
- [IntM " Forge.slot-is-immutable" ( fromIntegral $ unSlotNo slot) ]
1761
- asMetrics (TraceBlockFromFuture slot _slotNo) =
1762
- [IntM " Forge.block-from-future" ( fromIntegral $ unSlotNo slot) ]
1763
- asMetrics (TraceNoLedgerState slot _) =
1764
- [IntM " Forge.could-not-forge" ( fromIntegral $ unSlotNo slot) ]
1765
- asMetrics (TraceNoLedgerView slot _) =
1766
- [IntM " Forge.could-not-forge" ( fromIntegral $ unSlotNo slot) ]
1757
+ asMetrics (TraceStartLeadershipCheck _slot ) =
1758
+ [CounterM " Forge.about-to-lead" Nothing ]
1759
+ asMetrics (TraceSlotIsImmutable _slot _tipPoint _tipBlkNo) =
1760
+ [CounterM " Forge.slot-is-immutable" Nothing ]
1761
+ asMetrics (TraceBlockFromFuture _slot _slotNo) =
1762
+ [CounterM " Forge.block-from-future" Nothing ]
1763
+ asMetrics (TraceNoLedgerState _slot _) =
1764
+ [CounterM " Forge.could-not-forge" Nothing ]
1765
+ asMetrics (TraceNoLedgerView _slot _) =
1766
+ [CounterM " Forge.could-not-forge" Nothing ]
1767
1767
asMetrics (TraceLedgerView _) = []
1768
1768
asMetrics TraceBlockContext {} = []
1769
1769
asMetrics (TraceLedgerState _ _) = []
1770
- asMetrics (TraceNodeCannotForge slot _reason) =
1771
- [IntM " Forge.could-not-forge" ( fromIntegral $ unSlotNo slot) ]
1772
- asMetrics (TraceNodeNotLeader slot ) =
1773
- [IntM " Forge.node-not-leader" ( fromIntegral $ unSlotNo slot) ]
1774
- asMetrics (TraceNodeIsLeader slot ) =
1775
- [IntM " Forge.node-is-leader" ( fromIntegral $ unSlotNo slot) ]
1770
+ asMetrics (TraceNodeCannotForge _slot _reason) =
1771
+ [CounterM " Forge.could-not-forge" Nothing ]
1772
+ asMetrics (TraceNodeNotLeader _slot ) =
1773
+ [CounterM " Forge.node-not-leader" Nothing ]
1774
+ asMetrics (TraceNodeIsLeader _slot ) =
1775
+ [CounterM " Forge.node-is-leader" Nothing ]
1776
1776
asMetrics TraceForgeTickedLedgerState {} = []
1777
1777
asMetrics TraceForgingMempoolSnapshot {} = []
1778
- asMetrics (TraceForgedBlock slot _ _ _) =
1779
- [IntM " Forge.forged" ( fromIntegral $ unSlotNo slot) ]
1780
- asMetrics (TraceDidntAdoptBlock slot _) =
1781
- [IntM " Forge.didnt-adopt" ( fromIntegral $ unSlotNo slot) ]
1782
- asMetrics (TraceForgedInvalidBlock slot _ _) =
1783
- [IntM " Forge.forged-invalid" ( fromIntegral $ unSlotNo slot) ]
1784
- asMetrics (TraceAdoptedBlock slot _ _) =
1785
- [IntM " Forge.adopted" ( fromIntegral $ unSlotNo slot) ]
1786
- asMetrics (TraceAdoptionThreadDied slot _) =
1787
- [IntM " Forge.adoption-thread-died" ( fromIntegral $ unSlotNo slot) ]
1778
+ asMetrics (TraceForgedBlock _slot _ _ _) =
1779
+ [CounterM " Forge.forged" Nothing ]
1780
+ asMetrics (TraceDidntAdoptBlock _slot _) =
1781
+ [CounterM " Forge.didnt-adopt" Nothing ]
1782
+ asMetrics (TraceForgedInvalidBlock _slot _ _) =
1783
+ [CounterM " Forge.forged-invalid" Nothing ]
1784
+ asMetrics (TraceAdoptedBlock _slot _ _) =
1785
+ [CounterM " Forge.adopted" Nothing ]
1786
+ asMetrics (TraceAdoptionThreadDied _slot _) =
1787
+ [CounterM " Forge.adoption-thread-died" Nothing ]
1788
1788
1789
1789
instance MetaTrace (TraceForgeEvent blk ) where
1790
1790
namespaceFor TraceStartLeadershipCheck {} =
0 commit comments