@@ -14,15 +14,13 @@ module DMQ.Tracer
1414 , DMQTracers (.. )
1515 , PrometheusConfig
1616 , DMQStartupTrace (.. )
17- , NoExtraPeers (.. )
18- , NoExtraState (.. )
19- , NoExtraDebugState (.. )
20- , NoExtraCounters (.. )
21- , NoExtraFlags (.. )
17+ , Diffusion. NoExtraPeers (.. )
18+ , Diffusion. NoExtraState (.. )
19+ , Diffusion. NoExtraDebugState (.. )
20+ , Diffusion. NoExtraFlags (.. )
2221 , NoExtraConfig (.. )
2322 , NoExtraAPI (.. )
2423 , NoExtraChurnArgs (.. )
25- , NoExtraTracer (.. )
2624 ) where
2725
2826import Codec.CBOR.Term (Term )
@@ -47,7 +45,6 @@ import Ouroboros.Network.Tracing.PeerSelection ()
4745import Ouroboros.Network.Tracing.TxSubmission ()
4846
4947import Ouroboros.Network.ConnectionId
50- import Ouroboros.Network.Diffusion (NoExtraPeers (.. ))
5148import Ouroboros.Network.Diffusion qualified as Diffusion
5249import Ouroboros.Network.Diffusion.Topology (NetworkTopology )
5350import Ouroboros.Network.Driver (TraceSendRecv )
@@ -134,7 +131,7 @@ data DMQTracers crypto ntnAddr ntcAddr m = DMQTracers {
134131
135132data DMQStartupTrace
136133 = DMQConfiguration Configuration
137- | DMQTopology (NetworkTopology NoExtraConfig NoExtraFlags )
134+ | DMQTopology (NetworkTopology NoExtraConfig Diffusion. NoExtraFlags )
138135 | DMQPrometheus Logging. TracePrometheusSimple
139136
140137
@@ -169,10 +166,10 @@ type DMQDiffusionTracers m =
169166 LocalAddress
170167 NodeToClientVersion
171168 NodeToClientVersionData
172- NoExtraState
173- NoExtraDebugState
174- NoExtraFlags
175- (NoExtraPeers RemoteAddress )
169+ Diffusion. NoExtraState
170+ Diffusion. NoExtraDebugState
171+ Diffusion. NoExtraFlags
172+ (Diffusion. NoExtraPeers RemoteAddress )
176173 m
177174
178175type PrometheusConfig = Maybe (Bool , Maybe HostName , PortNumber )
@@ -975,28 +972,18 @@ instance Logging.MetaTrace (AnyMessage (PS.PeerSharing addr)) where
975972instance ToJSON Term where
976973 toJSON term = String (Text. pack . show $ term)
977974
978- instance ToJSON (PublicRootPeers (NoExtraPeers RemoteAddress ) RemoteAddress ) where
975+ instance ToJSON (PublicRootPeers (Diffusion. NoExtraPeers RemoteAddress ) RemoteAddress ) where
979976 toJSON prp =
980977 object [ " kind" .= String " PublicRootPeers"
981978 , " ledgerPeers" .= PublicRootPeers. getLedgerPeers prp
982979 , " bigLedgerPeers" .= PublicRootPeers. getBigLedgerPeers prp
983980 ]
984981
985- data NoExtraState = NoExtraState
986- data NoExtraCounters = NoExtraCounters deriving Eq
987- data NoExtraDebugState = NoExtraDebugState
988- instance ToJSON NoExtraDebugState where
982+ -- TODO: move to this instance, `NoExtraChurnArgs` and `NoExtraAPI` to
983+ -- `Ouroboros.Network.Diffusion.Types`.
984+
985+ instance ToJSON Diffusion. NoExtraDebugState where
989986 toJSON _ = Null
990987 omitField _ = True
991988data NoExtraChurnArgs = NoExtraChurnArgs
992989data NoExtraAPI = NoExtraAPI
993- data NoExtraTracer = NoExtraTracer
994- instance Show NoExtraState where
995- show _ = " "
996- instance Show NoExtraDebugState where
997- show _ = " "
998- instance Show NoExtraTracer where
999- show _ = " "
1000- instance ToJSON NoExtraTracer where
1001- toJSON _ = Null
1002- omitField _ = True
0 commit comments