Skip to content

Commit 11fe67c

Browse files
committed
Fix cardano-tracer-bench.hs
1 parent bb50cbd commit 11fe67c

1 file changed

Lines changed: 21 additions & 18 deletions

File tree

cardano-tracer/bench/cardano-tracer-bench.hs

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# LANGUAGE NamedFieldPuns #-}
2+
{-# LANGUAGE OverloadedRecordDot #-}
23
{-# LANGUAGE OverloadedStrings #-}
34

45
import Cardano.Logging hiding (LocalSocket)
@@ -61,7 +62,7 @@ main = do
6162
rtViewPageOpened <- newTVarIO False
6263
#endif
6364

64-
tracer <- mkTracerTracer $ SeverityF $ Just Warning
65+
tracer <- mkTraceBundle $ SeverityF $ Just Warning
6566

6667
let tracerEnv :: TracerConfig -> HandleRegistry -> TracerEnv
6768
tracerEnv config handleRegistry = TracerEnv
@@ -73,11 +74,12 @@ main = do
7374
, teCurrentDPLock = currentDPLock
7475
, teDPRequestors = dpRequestors
7576
, teProtocolsBrake = protocolsBrake
76-
, teTracer = tracer
77+
, teTracer = tracer.assorted
7778
, teReforwardTraceObjects = \_-> pure ()
7879
, teRegistry = handleRegistry
7980
, teStateDir = Nothing
8081
, teMetricsHelp = []
82+
, teTimeseriesHandle = Nothing
8183
}
8284

8385
tracerEnvRTView :: TracerEnvRTView
@@ -140,22 +142,23 @@ main = do
140142

141143
mkConfig :: FilePath -> LogFormat -> TracerConfig
142144
mkConfig root format = TracerConfig
143-
{ networkMagic = 764824073
144-
, network = AcceptAt (Net.LocalPipe "")
145-
, loRequestNum = Nothing
146-
, ekgRequestFreq = Nothing
147-
, hasEKG = Nothing
148-
, hasPrometheus = Nothing
149-
, hasRTView = Nothing
150-
, tlsCertificate = Nothing
151-
, logging = NE.fromList [LoggingParams root FileMode format]
152-
, rotation = Nothing
153-
, verbosity = Nothing
154-
, metricsNoSuffix = Nothing
155-
, metricsHelp = Nothing
156-
, hasForwarding = Nothing
157-
, resourceFreq = Nothing
158-
, ekgRequestFull = Nothing
145+
{ networkMagic = 764824073
146+
, network = AcceptAt (Net.LocalPipe "")
147+
, loRequestNum = Nothing
148+
, ekgRequestFreq = Nothing
149+
, hasEKG = Nothing
150+
, hasPrometheus = Nothing
151+
, hasRTView = Nothing
152+
, hasTimeseries = Nothing
153+
, tlsCertificate = Nothing
154+
, logging = NE.fromList [LoggingParams root FileMode format]
155+
, rotation = Nothing
156+
, verbosity = Nothing
157+
, metricsNoSuffix = Nothing
158+
, metricsHelp = Nothing
159+
, hasForwarding = Nothing
160+
, resourceFreq = Nothing
161+
, ekgRequestFull = Nothing
159162
, prometheusLabels = Nothing
160163
}
161164

0 commit comments

Comments
 (0)