@@ -54,7 +54,7 @@ startLedgerMetricsTracer tr everyNThSlot nodeKernelData = do
54
54
where
55
55
ledgerMetricsThread :: IO ()
56
56
ledgerMetricsThread = do
57
- myThreadId >>= flip labelThread " Peer Tracer "
57
+ myThreadId >>= flip labelThread " Ledger Metrics "
58
58
go 1 SNothing
59
59
where
60
60
go :: Int -> StrictMaybe SlotNo -> IO ()
@@ -83,6 +83,7 @@ data LedgerMetrics =
83
83
tsSlotNo :: SlotNo
84
84
, tsUtxoSize :: Int
85
85
, tsDelegMapSize :: Int
86
+ -- Temporarily disabled: uncomment after benchmarking and approval
86
87
-- , tsDRepCount :: Int
87
88
-- , tsDRepMapSize :: Int
88
89
, tsChainDensity :: Double
@@ -105,6 +106,7 @@ traceLedgerMetrics nodeKern slotNo tracer = do
105
106
(,,) -- (,,,,)
106
107
<$> nkQueryLedger (ledgerUtxoSize . ledgerState) nk
107
108
<*> nkQueryLedger (ledgerDelegMapSize . ledgerState) nk
109
+ -- Temporarily disabled: uncomment after benchmarking and approval
108
110
-- <*> nkQueryLedger (ledgerDRepCount . ledgerState) nk
109
111
-- <*> nkQueryLedger (ledgerDRepMapSize . ledgerState) nk
110
112
<*> nkQueryChain fragmentChainDensity nk)
@@ -116,6 +118,7 @@ traceLedgerMetrics nodeKern slotNo tracer = do
116
118
slotNo
117
119
utxoSize
118
120
delegMapSize
121
+ -- Temporarily disabled: uncomment after benchmarking and approval
119
122
-- drepCount
120
123
-- drepMapSize
121
124
(fromRational chainDensity)
@@ -131,6 +134,7 @@ instance LogFormatting LedgerMetrics where
131
134
, " slot" .= toJSON (unSlotNo tsSlotNo)
132
135
, " utxoSize" .= Number (fromIntegral tsUtxoSize)
133
136
, " delegMapSize" .= Number (fromIntegral tsDelegMapSize)
137
+ -- Temporarily disabled: uncomment after benchmarking and approval
134
138
-- , "drepCount" .= Number (fromIntegral tsDRepCount)
135
139
-- , "drepMapSize" .= Number (fromIntegral tsDRepMapSize)
136
140
, " chainDensity" .= Number (fromRational (toRational tsChainDensity))
@@ -139,12 +143,14 @@ instance LogFormatting LedgerMetrics where
139
143
" Ledger metrics "
140
144
<> " utxoSize " <> showT tsUtxoSize
141
145
<> " delegMapSize " <> showT tsDelegMapSize
146
+ -- Temporarily disabled: uncomment after benchmarking and approval
142
147
-- <> " drepCount" <> showT tsDRepCount
143
148
-- <> " drepMapSize" <> showT tsDRepMapSize
144
149
<> " chainDensity " <> showT tsChainDensity
145
150
asMetrics LedgerMetrics {.. } =
146
151
[ IntM " utxoSize" (fromIntegral tsUtxoSize)
147
152
, IntM " delegMapSize" (fromIntegral tsDelegMapSize)
153
+ -- Temporarily disabled: uncomment after benchmarking and approval
148
154
-- , IntM "drepCount" (fromIntegral tsDRepCount)
149
155
-- , IntM "drepMapSize" (fromIntegral tsDRepMapSize)
150
156
]
@@ -158,6 +164,7 @@ instance MetaTrace LedgerMetrics where
158
164
metricsDocFor (Namespace _ [" LedgerMetrics" ]) =
159
165
[ (" utxoSize" , " Size of the current UTxO set (number of entries)" )
160
166
, (" delegMapSize" , " Size of the delegation map (number of delegators)" )
167
+ -- Temporarily disabled: uncomment after benchmarking and approval
161
168
-- , ("drepCount", "Number of active DReps (Delegated Representatives)")
162
169
-- , ("drepMapSize", "Size of the DRep map (number of stake keys mapped to DReps)")
163
170
]
@@ -174,7 +181,8 @@ instance MetaTrace LedgerMetrics where
174
181
175
182
allNamespaces = [Namespace [] [" LedgerMetrics" ]]
176
183
177
-
184
+ -- NOTE: DRep-related fields are currently excluded from logs until benchmarked
185
+ -- and confirmed for production readiness.
178
186
179
187
180
188
0 commit comments