diff --git a/cardano-node/src/Cardano/Node/Tracing/Consistency.hs b/cardano-node/src/Cardano/Node/Tracing/Consistency.hs index e7328a59512..a2e4aa6bb35 100644 --- a/cardano-node/src/Cardano/Node/Tracing/Consistency.hs +++ b/cardano-node/src/Cardano/Node/Tracing/Consistency.hs @@ -63,7 +63,7 @@ import Ouroboros.Network.KeepAlive (TraceKeepAliveClient (..)) import qualified Ouroboros.Network.NodeToClient as NtC import Ouroboros.Network.NodeToNode (ErrorPolicyTrace (..), RemoteAddress, WithAddr (..)) import qualified Ouroboros.Network.NodeToNode as NtN -import Ouroboros.Network.PeerSelection.Governor (DebugPeerSelection (..), +import Ouroboros.Network.PeerSelection.Governor (ChurnCounters, DebugPeerSelection (..), PeerSelectionCounters, TracePeerSelection (..)) import Ouroboros.Network.PeerSelection.LedgerPeers (TraceLedgerPeers) import Ouroboros.Network.PeerSelection.PeerStateActions (PeerSelectionActionsTrace (..)) @@ -291,7 +291,9 @@ getAllNamespaces = ["Net", "PeerSelection", "Counters"]) (allNamespaces :: [Namespace PeerSelectionCounters]) - + churnCountersNS = map (nsGetTuple . nsReplacePrefix + ["Net", "Churn"]) + (allNamespaces :: [Namespace ChurnCounters]) peerSelectionActionsNS = map (nsGetTuple . nsReplacePrefix ["Net", "PeerSelection", "Actions"]) (allNamespaces :: [Namespace @@ -415,6 +417,7 @@ getAllNamespaces = <> debugPeerSelectionNS <> debugPeerSelectionResponderNS <> peerSelectionCountersNS + <> churnCountersNS <> peerSelectionActionsNS <> connectionManagerNS <> connectionManagerTransitionsNS diff --git a/cardano-node/src/Cardano/Node/Tracing/Documentation.hs b/cardano-node/src/Cardano/Node/Tracing/Documentation.hs index e109c8354c1..676b8d021a9 100644 --- a/cardano-node/src/Cardano/Node/Tracing/Documentation.hs +++ b/cardano-node/src/Cardano/Node/Tracing/Documentation.hs @@ -72,7 +72,7 @@ import Ouroboros.Network.KeepAlive (TraceKeepAliveClient (..)) import qualified Ouroboros.Network.NodeToClient as NtC import Ouroboros.Network.NodeToNode (ErrorPolicyTrace (..), RemoteAddress, WithAddr (..)) import qualified Ouroboros.Network.NodeToNode as NtN -import Ouroboros.Network.PeerSelection.Governor (DebugPeerSelection (..), +import Ouroboros.Network.PeerSelection.Governor (ChurnCounters, DebugPeerSelection (..), PeerSelectionCounters, TracePeerSelection (..)) import Ouroboros.Network.PeerSelection.LedgerPeers (TraceLedgerPeers) import Ouroboros.Network.PeerSelection.PeerStateActions (PeerSelectionActionsTrace (..)) @@ -555,6 +555,12 @@ docTracersFirstPhase condConfigFileName = do peerSelectionCountersTrDoc <- documentTracer (peerSelectionCountersTr :: Trace IO PeerSelectionCounters) + churnCountersTr <- mkCardanoTracer + trBase trForward mbTrEKG + ["Net", "Churn"] + configureTracers configReflection trConfig [churnCountersTr] + churnCountersTrDoc <- documentTracer (churnCountersTr :: Trace IO ChurnCounters) + peerSelectionActionsTr <- mkCardanoTracer trBase trForward mbTrEKG ["Net", "PeerSelection", "Actions"] @@ -731,6 +737,7 @@ docTracersFirstPhase condConfigFileName = do <> debugPeerSelectionTrDoc <> debugPeerSelectionResponderTrDoc <> peerSelectionCountersTrDoc + <> churnCountersTrDoc <> peerSelectionActionsTrDoc <> connectionManagerTrDoc <> connectionManagerTransitionsTrDoc