@@ -12,6 +12,7 @@ module Cardano.Node.Tracing.Consistency
1212 , checkNodeTraceConfiguration'
1313 ) where
1414
15+
1516import Cardano.Logging
1617import Cardano.Logging.Resources
1718import Cardano.Logging.Resources.Types ()
@@ -23,29 +24,33 @@ import Cardano.Node.Tracing.Formatting ()
2324import qualified Cardano.Node.Tracing.StateRep as SR
2425import Cardano.Node.Tracing.Tracers.BlockReplayProgress
2526import Cardano.Node.Tracing.Tracers.Consensus
27+ import Cardano.Node.Tracing.Tracers.ConsensusStartupException
2628import Cardano.Node.Tracing.Tracers.Diffusion ()
2729import Cardano.Node.Tracing.Tracers.KESInfo ()
2830import Cardano.Node.Tracing.Tracers.NodeToClient ()
2931import Cardano.Node.Tracing.Tracers.NodeToNode ()
3032import Cardano.Node.Tracing.Tracers.NodeVersion (NodeVersionTrace )
31-
3233import Cardano.Node.Tracing.Tracers.NonP2P ()
3334import Cardano.Node.Tracing.Tracers.P2P ()
3435import Cardano.Node.Tracing.Tracers.Peer
3536import Cardano.Node.Tracing.Tracers.Shutdown ()
3637import Cardano.Node.Tracing.Tracers.Startup ()
38+ import Ouroboros.Consensus.Block.SupportsSanityCheck (SanityCheckIssue )
3739import Ouroboros.Consensus.BlockchainTime.WallClock.Types (RelativeTime )
3840import Ouroboros.Consensus.BlockchainTime.WallClock.Util (TraceBlockchainTimeEvent (.. ))
3941import Ouroboros.Consensus.Cardano.Block
42+ import Ouroboros.Consensus.Genesis.Governor (TraceGDDEvent (.. ))
4043import Ouroboros.Consensus.Ledger.Query (Query )
4144import Ouroboros.Consensus.Ledger.SupportsMempool (ApplyTxErr , GenTxId )
4245import Ouroboros.Consensus.Mempool (TraceEventMempool (.. ))
4346import Ouroboros.Consensus.MiniProtocol.BlockFetch.Server
4447 (TraceBlockFetchServerEvent (.. ))
4548import Ouroboros.Consensus.MiniProtocol.ChainSync.Client (TraceChainSyncClientEvent )
49+ import Ouroboros.Consensus.MiniProtocol.ChainSync.Client.Jumping as Jumping
4650import Ouroboros.Consensus.MiniProtocol.ChainSync.Server (TraceChainSyncServerEvent )
4751import Ouroboros.Consensus.MiniProtocol.LocalTxSubmission.Server
4852 (TraceLocalTxSubmissionServerEvent (.. ))
53+ import Ouroboros.Consensus.Node.GSM (TraceGsmEvent )
4954import qualified Ouroboros.Consensus.Protocol.Ledger.HotKey as HotKey
5055import qualified Ouroboros.Consensus.Storage.ChainDB as ChainDB
5156import Ouroboros.Network.Block (Point (.. ), SlotNo , Tip )
@@ -139,12 +144,12 @@ getAllNamespaces =
139144 replayBlockNS = map (nsGetTuple . nsReplacePrefix [" ChainDB" , " ReplayBlock" ])
140145 (allNamespaces :: [Namespace ReplayBlockStats ])
141146-- Consensus tracers
147+
142148 chainSyncClientNS = map
143149 (nsGetTuple . nsReplacePrefix [" ChainSync" , " Client" ])
144150 (allNamespaces :: [Namespace (BlockFetch. TraceLabelPeer
145151 (ConnectionId RemoteAddress )
146152 (TraceChainSyncClientEvent blk))])
147-
148153 chainSyncServerHeaderNS = map (nsGetTuple . nsReplacePrefix [" ChainSync" , " ServerHeader" ])
149154 (allNamespaces :: [Namespace (TraceChainSyncServerEvent blk )])
150155 chainSyncServerBlockNS = map (nsGetTuple . nsReplacePrefix [" ChainSync" , " ServerBlock" ])
@@ -157,7 +162,6 @@ getAllNamespaces =
157162 (allNamespaces :: [Namespace (BlockFetch. TraceLabelPeer
158163 remotePeer
159164 (BlockFetch. TraceFetchClientState (Header blk)))])
160-
161165 blockFetchServerNS = map (nsGetTuple . nsReplacePrefix [" BlockFetch" , " Server" ])
162166 (allNamespaces :: [Namespace (TraceBlockFetchServerEvent blk )])
163167
@@ -172,6 +176,8 @@ getAllNamespaces =
172176 (allNamespaces :: [Namespace (BlockFetch. TraceLabelPeer
173177 remotePeer
174178 (TraceTxSubmissionOutbound (GenTxId blk) (GenTx blk)))])
179+ consensusSanityCheckNS = map (nsGetTuple . nsReplacePrefix [" Consensus" , " SanityCheck" ])
180+ (allNamespaces :: [Namespace SanityCheckIssue ])
175181 localTxSubmissionServerNS = map (nsGetTuple . nsReplacePrefix
176182 [" TxSubmission" , " LocalServer" ])
177183 (allNamespaces :: [Namespace
@@ -183,6 +189,14 @@ getAllNamespaces =
183189
184190 blockchainTimeNS = map (nsGetTuple . nsReplacePrefix [" BlockchainTime" ])
185191 (allNamespaces :: [Namespace (TraceBlockchainTimeEvent RelativeTime )])
192+ gddNS = map (nsGetTuple . nsReplacePrefix [" Consensus" , " GDD" ])
193+ (allNamespaces :: [Namespace (TraceGDDEvent peer blk )])
194+ consensusStartupErrorNS = map (nsGetTuple . nsReplacePrefix [" Consensus" , " Startup" ])
195+ (allNamespaces :: [Namespace ConsensusStartupException ])
196+ gsmNS = map (nsGetTuple . nsReplacePrefix [" Consensus" , " GSM" ])
197+ (allNamespaces :: [Namespace (TraceGsmEvent (Tip blk ))])
198+ csjNS = map (nsGetTuple . nsReplacePrefix [" Consensus" , " CSJ" ])
199+ (allNamespaces :: [Namespace (Jumping. TraceEvent peer )])
186200
187201-- Node to client
188202 keepAliveClientNS = map (nsGetTuple . nsReplacePrefix [" Net" ])
@@ -380,6 +394,7 @@ getAllNamespaces =
380394 <> chainSyncServerHeaderNS
381395 <> chainSyncServerBlockNS
382396 <> blockFetchDecisionNS
397+ <> consensusSanityCheckNS
383398 <> blockFetchClientNS
384399 <> blockFetchServerNS
385400 <> forgeKESInfoNS
@@ -389,6 +404,10 @@ getAllNamespaces =
389404 <> mempoolNS
390405 <> forgeNS
391406 <> blockchainTimeNS
407+ <> gddNS
408+ <> consensusStartupErrorNS
409+ <> gsmNS
410+ <> csjNS
392411-- NodeToClient
393412 <> keepAliveClientNS
394413 <> chainSyncNS
0 commit comments