@@ -52,30 +52,24 @@ import Cardano.Node.Handlers.Shutdown (ShutdownTrace)
52
52
import Cardano.Node.Startup
53
53
import Cardano.Node.TraceConstraints
54
54
55
- import Ouroboros.Consensus.Block.Forging
56
55
import Ouroboros.Consensus.BlockchainTime.WallClock.Types (RelativeTime )
57
56
import Ouroboros.Consensus.BlockchainTime.WallClock.Util (TraceBlockchainTimeEvent (.. ))
58
57
import Ouroboros.Consensus.Cardano.Block
59
- import Ouroboros.Consensus.Ledger.Inspect
60
- import Ouroboros.Consensus.Ledger.Query (Query , ShowQuery )
61
- import Ouroboros.Consensus.Ledger.SupportsMempool (ApplyTxErr , GenTxId ,
62
- LedgerSupportsMempool )
63
- import Ouroboros.Consensus.Ledger.SupportsProtocol
58
+ import Ouroboros.Consensus.Ledger.Query (Query )
59
+ import Ouroboros.Consensus.Ledger.SupportsMempool (ApplyTxErr , GenTxId )
64
60
import Ouroboros.Consensus.Mempool (TraceEventMempool (.. ))
65
61
import Ouroboros.Consensus.MiniProtocol.BlockFetch.Server
66
62
(TraceBlockFetchServerEvent (.. ))
67
63
import Ouroboros.Consensus.MiniProtocol.ChainSync.Client (TraceChainSyncClientEvent )
68
64
import Ouroboros.Consensus.MiniProtocol.ChainSync.Server (TraceChainSyncServerEvent )
69
65
import Ouroboros.Consensus.MiniProtocol.LocalTxSubmission.Server
70
66
(TraceLocalTxSubmissionServerEvent (.. ))
71
- import Ouroboros.Consensus.Node.NetworkProtocolVersion
72
- import qualified Ouroboros.Consensus.Node.Run as Consensus
73
67
import qualified Ouroboros.Consensus.Node.Tracers as Consensus
74
68
import qualified Ouroboros.Consensus.Protocol.Ledger.HotKey as HotKey
75
69
import qualified Ouroboros.Consensus.Storage.ChainDB as ChainDB
76
70
77
71
78
- import Ouroboros.Network.Block (Point (.. ), SlotNo , Tip )
72
+ import Ouroboros.Network.Block (Point (.. ), Serialised , SlotNo , Tip )
79
73
import qualified Ouroboros.Network.BlockFetch.ClientState as BlockFetch
80
74
import Ouroboros.Network.BlockFetch.Decision
81
75
import Ouroboros.Network.ConnectionHandler (ConnectionHandlerTrace (.. ))
@@ -163,19 +157,10 @@ runTraceDocumentationCmd TraceDocumentationCmd{..} = do
163
157
-- Can be changed, when old tracers have gone
164
158
docTracers :: forall blk peer remotePeer .
165
159
( TraceConstraints blk
166
- , InspectLedger blk
167
- , LedgerSupportsMempool blk
168
- , LedgerSupportsProtocol blk
169
- , Consensus. SerialiseNodeToNodeConstraints blk
170
160
, LogFormatting peer
171
161
, LogFormatting remotePeer
172
- , Show (BlockNodeToClientVersion blk )
173
- , Show (BlockNodeToNodeVersion blk )
174
162
, Show remotePeer
175
163
, Show peer
176
- , Show (ForgeStateUpdateError blk )
177
- , Show (CannotForge blk )
178
- , ShowQuery (BlockQuery blk )
179
164
)
180
165
=> FilePath
181
166
-> FilePath
@@ -193,16 +178,16 @@ docTracers configFileName outputFileName _ _ _ = do
193
178
configReflection <- emptyConfigReflection
194
179
195
180
-- NodeInfo tracer
196
- nodeInfoTr <- mkDataPointTracer
181
+ nodeInfoDp <- mkDataPointTracer
197
182
trDataPoint
198
- configureTracers configReflection trConfig [nodeInfoTr ]
199
- nodeInfoTrDoc <- documentTracer (nodeInfoTr :: Trace IO NodeInfo )
183
+ configureTracers configReflection trConfig [nodeInfoDp ]
184
+ nodeInfoDpDoc <- documentTracer (nodeInfoDp :: Trace IO NodeInfo )
200
185
201
- nodeStartupInfoTr <- mkDataPointTracer
186
+ nodeStartupInfoDp <- mkDataPointTracer
202
187
trDataPoint
203
- configureTracers configReflection trConfig [nodeStartupInfoTr ]
204
- nodeStartupInfoTrDoc <- documentTracer
205
- (nodeStartupInfoTr :: Trace IO NodeStartupInfo )
188
+ configureTracers configReflection trConfig [nodeStartupInfoDp ]
189
+ nodeStartupInfoDpDoc <- documentTracer
190
+ (nodeStartupInfoDp :: Trace IO NodeStartupInfo )
206
191
207
192
-- State tracer
208
193
stateTr <- mkCardanoTracer
@@ -212,7 +197,6 @@ docTracers configFileName outputFileName _ _ _ = do
212
197
stateTrDoc <- documentTracer (stateTr :: Trace IO SR. NodeState )
213
198
214
199
-- Peers tracer
215
-
216
200
peersTr <- mkCardanoTracer
217
201
trBase trForward mbTrEKG
218
202
[" Net" , " Peers" , " List" ]
@@ -239,7 +223,6 @@ docTracers configFileName outputFileName _ _ _ = do
239
223
configureTracers configReflection trConfig [shutdownTr]
240
224
shutdownTrDoc <- documentTracer (shutdownTr :: Trace IO ShutdownTrace )
241
225
242
-
243
226
chainDBTr <- mkCardanoTracer'
244
227
trBase trForward mbTrEKG
245
228
[" ChainDB" ]
@@ -314,7 +297,7 @@ docTracers configFileName outputFileName _ _ _ = do
314
297
315
298
forgeKESInfoTr <- mkCardanoTracer
316
299
trBase trForward mbTrEKG
317
- [" Forge" , " KESInfo " ]
300
+ [" Forge" ]
318
301
configureTracers configReflection trConfig [forgeKESInfoTr]
319
302
forgeKESInfoTrDoc <- documentTracer (forgeKESInfoTr ::
320
303
Trace IO (Consensus. TraceLabelCreds HotKey. KESInfo ))
@@ -361,7 +344,7 @@ docTracers configFileName outputFileName _ _ _ = do
361
344
-- TODO YUP
362
345
-- forgeTr' <- mkCardanoTracer'
363
346
-- trBase trForward mbTrEKG
364
- -- ["Forge", "Loop "]
347
+ -- ["Forge", "ThreadStats "]
365
348
-- forgeThreadStats
366
349
-- configureTracers configReflection trConfig [forgeTr']
367
350
-- forgeThreadStatsTrDoc <- documentTracer' forgeThreadStats (forgeTr' ::
@@ -418,8 +401,8 @@ docTracers configFileName outputFileName _ _ _ = do
418
401
(GenTx blk) (ApplyTxErr blk)))))
419
402
420
403
stateQueryTr <- mkCardanoTracer
421
- trBase trForward mbTrEKG
422
- [" StateQueryServer" ]
404
+ trBase trForward mbTrEKG
405
+ [" StateQueryServer" ]
423
406
configureTracers configReflection trConfig [stateQueryTr]
424
407
stateQueryTrDoc <- documentTracer (stateQueryTr ::
425
408
Trace IO
@@ -435,7 +418,7 @@ docTracers configFileName outputFileName _ _ _ = do
435
418
configureTracers configReflection trConfig [chainSyncNodeTr]
436
419
chainSyncNodeTrDoc <- documentTracer (chainSyncNodeTr ::
437
420
Trace IO (BlockFetch. TraceLabelPeer peer (TraceSendRecv
438
- (ChainSync (Header blk) (Point blk) (Tip blk)))))
421
+ (ChainSync (Header blk) (Point blk) (Tip blk)))))
439
422
440
423
chainSyncSerialisedTr <- mkCardanoTracer
441
424
trBase trForward mbTrEKG
@@ -463,7 +446,7 @@ docTracers configFileName outputFileName _ _ _ = do
463
446
Trace IO
464
447
(BlockFetch. TraceLabelPeer peer
465
448
(TraceSendRecv
466
- (BlockFetch blk (Point blk)))))
449
+ (BlockFetch ( Serialised blk) (Point blk)))))
467
450
468
451
txSubmission2Tr <- mkCardanoTracer
469
452
trBase trForward mbTrEKG
@@ -520,7 +503,6 @@ docTracers configFileName outputFileName _ _ _ = do
520
503
Trace IO TraceLedgerPeers )
521
504
522
505
-- DiffusionTracersExtra P2P
523
-
524
506
localRootPeersTr <- mkCardanoTracer
525
507
trBase trForward mbTrEKG
526
508
[" Net" , " Peers" , " LocalRoot" ]
@@ -582,12 +564,11 @@ docTracers configFileName outputFileName _ _ _ = do
582
564
583
565
connectionManagerTransitionsTr <- mkCardanoTracer
584
566
trBase trForward mbTrEKG
585
- [" Net" , " ConnectionManager" , " Remote " ]
567
+ [" Net" , " ConnectionManager" , " Transition " ]
586
568
configureTracers configReflection trConfig [connectionManagerTransitionsTr]
587
569
connectionManagerTransitionsTrDoc <- documentTracer (connectionManagerTransitionsTr ::
588
570
Trace IO (ConnectionManager. AbstractTransitionTrace Socket. SockAddr ))
589
571
590
-
591
572
serverTr <- mkCardanoTracer
592
573
trBase trForward mbTrEKG
593
574
[" Net" , " Server" , " Remote" ]
@@ -635,6 +616,7 @@ docTracers configFileName outputFileName _ _ _ = do
635
616
localInboundGovernorTrDoc <- documentTracer (localInboundGovernorTr ::
636
617
Trace IO (InboundGovernorTrace LocalAddress ))
637
618
619
+
638
620
-- -- DiffusionTracersExtra nonP2P
639
621
640
622
dtIpSubscriptionTr <- mkCardanoTracer
@@ -679,9 +661,9 @@ docTracers configFileName outputFileName _ _ _ = do
679
661
dtAcceptPolicyTrDoc <- documentTracer (dtAcceptPolicyTr ::
680
662
Trace IO NtN. AcceptConnectionsPolicyTrace )
681
663
682
- let bl = nodeInfoTrDoc
664
+ let bl = nodeInfoDpDoc
665
+ <> nodeStartupInfoDpDoc
683
666
<> stateTrDoc
684
- <> nodeStartupInfoTrDoc
685
667
<> resourcesTrDoc
686
668
<> startupTrDoc
687
669
<> shutdownTrDoc
0 commit comments