@@ -68,14 +68,11 @@ import qualified Ouroboros.Network.BlockFetch.ClientState as BlockFetch
68
68
import Ouroboros.Network.BlockFetch.Decision
69
69
import Ouroboros.Network.BlockFetch.Decision.Trace (TraceDecisionEvent (.. ))
70
70
import Ouroboros.Network.ConnectionId (ConnectionId (.. ))
71
- import Ouroboros.Network.DeltaQ (GSV (.. ), PeerGSV (.. ))
72
- import Ouroboros.Network.KeepAlive (TraceKeepAliveClient (.. ))
73
71
import Ouroboros.Network.SizeInBytes (SizeInBytes (.. ))
74
72
import Ouroboros.Network.TxSubmission.Inbound hiding (txId )
75
73
import Ouroboros.Network.TxSubmission.Outbound
76
74
77
75
import Control.Monad (guard )
78
- import Control.Monad.Class.MonadTime.SI (Time (.. ))
79
76
import Data.Aeson (ToJSON , Value (Number , String ), toJSON , (.=) )
80
77
import qualified Data.Aeson as Aeson
81
78
import Data.Foldable (Foldable (toList ))
@@ -84,7 +81,7 @@ import Data.IntPSQ (IntPSQ)
84
81
import qualified Data.IntPSQ as Pq
85
82
import qualified Data.List as List
86
83
import qualified Data.Text as Text
87
- import Data.Time (DiffTime , NominalDiffTime )
84
+ import Data.Time (NominalDiffTime )
88
85
import Data.Word (Word32 , Word64 )
89
86
import Network.TypedProtocol.Core
90
87
@@ -2163,41 +2160,6 @@ instance MetaTrace (TraceBlockchainTimeEvent t) where
2163
2160
, Namespace [] [" SystemClockMovedBack" ]
2164
2161
]
2165
2162
2166
- --------------------------------------------------------------------------------
2167
- -- KeepAliveClient Tracer
2168
- --------------------------------------------------------------------------------
2169
-
2170
- instance Show remotePeer => LogFormatting (TraceKeepAliveClient remotePeer ) where
2171
- forMachine _dtal (AddSample peer rtt pgsv) =
2172
- mconcat
2173
- [ " kind" .= String " AddSample"
2174
- , " address" .= show peer
2175
- , " rtt" .= rtt
2176
- , " sampleTime" .= show (dTime $ sampleTime pgsv)
2177
- , " outboundG" .= (realToFrac $ gGSV (outboundGSV pgsv) :: Double )
2178
- , " inboundG" .= (realToFrac $ gGSV (inboundGSV pgsv) :: Double )
2179
- ]
2180
- where
2181
- gGSV :: GSV -> DiffTime
2182
- gGSV (GSV g _ _) = g
2183
-
2184
- dTime :: Time -> Double
2185
- dTime (Time d) = realToFrac d
2186
-
2187
- forHuman = showT
2188
-
2189
- instance MetaTrace (TraceKeepAliveClient remotePeer ) where
2190
- namespaceFor AddSample {} = Namespace [] [" KeepAliveClient" ]
2191
-
2192
- severityFor (Namespace _ [" KeepAliveClient" ]) Nothing = Just Info
2193
- severityFor _ _ = Nothing
2194
-
2195
- documentFor (Namespace _ [" KeepAliveClient" ]) = Just
2196
- " A server read has occurred, either for an add block or a rollback"
2197
- documentFor _ = Just " "
2198
-
2199
- allNamespaces = [Namespace [] [" KeepAliveClient" ]]
2200
-
2201
2163
--------------------------------------------------------------------------------
2202
2164
-- Gsm Tracer
2203
2165
--------------------------------------------------------------------------------
0 commit comments