@@ -83,8 +83,8 @@ data LedgerMetrics =
83
83
tsSlotNo :: SlotNo
84
84
, tsUtxoSize :: Int
85
85
, tsDelegMapSize :: Int
86
- , tsDRepCount :: Int
87
- , tsDRepMapSize :: Int
86
+ -- , tsDRepCount :: Int
87
+ -- , tsDRepMapSize :: Int
88
88
, tsChainDensity :: Double
89
89
}
90
90
@@ -102,22 +102,22 @@ traceLedgerMetrics ::
102
102
traceLedgerMetrics nodeKern slotNo tracer = do
103
103
query <- mapNodeKernelDataIO
104
104
(\ nk ->
105
- (,,,,)
105
+ (,,) -- (,, ,,)
106
106
<$> nkQueryLedger (ledgerUtxoSize . ledgerState) nk
107
107
<*> nkQueryLedger (ledgerDelegMapSize . ledgerState) nk
108
- <*> nkQueryLedger (ledgerDRepCount . ledgerState) nk
109
- <*> nkQueryLedger (ledgerDRepMapSize . ledgerState) nk
108
+ -- <*> nkQueryLedger (ledgerDRepCount . ledgerState) nk
109
+ -- <*> nkQueryLedger (ledgerDRepMapSize . ledgerState) nk
110
110
<*> nkQueryChain fragmentChainDensity nk)
111
111
nodeKern
112
112
case query of
113
113
SNothing -> pure ()
114
- SJust (utxoSize, delegMapSize, drepCount, drepMapSize, chainDensity) ->
114
+ SJust (utxoSize, delegMapSize, {- drepCount, drepMapSize, -} chainDensity) ->
115
115
let msg = LedgerMetrics
116
116
slotNo
117
117
utxoSize
118
118
delegMapSize
119
- drepCount
120
- drepMapSize
119
+ -- drepCount
120
+ -- drepMapSize
121
121
(fromRational chainDensity)
122
122
in traceWith tracer msg
123
123
@@ -131,22 +131,23 @@ instance LogFormatting LedgerMetrics where
131
131
, " slot" .= toJSON (unSlotNo tsSlotNo)
132
132
, " utxoSize" .= Number (fromIntegral tsUtxoSize)
133
133
, " delegMapSize" .= Number (fromIntegral tsDelegMapSize)
134
- , " drepCount" .= Number (fromIntegral tsDRepCount)
135
- , " drepMapSize" .= Number (fromIntegral tsDRepMapSize)
134
+ -- , "drepCount" .= Number (fromIntegral tsDRepCount)
135
+ -- , "drepMapSize" .= Number (fromIntegral tsDRepMapSize)
136
136
, " chainDensity" .= Number (fromRational (toRational tsChainDensity))
137
137
]
138
138
forHuman LedgerMetrics {.. } =
139
139
" Ledger metrics "
140
140
<> " utxoSize " <> showT tsUtxoSize
141
141
<> " delegMapSize " <> showT tsDelegMapSize
142
- <> " drepCount" <> showT tsDRepCount
143
- <> " drepMapSize" <> showT tsDRepMapSize
142
+ -- <> " drepCount" <> showT tsDRepCount
143
+ -- <> " drepMapSize" <> showT tsDRepMapSize
144
144
<> " chainDensity " <> showT tsChainDensity
145
145
asMetrics LedgerMetrics {.. } =
146
146
[ IntM " utxoSize" (fromIntegral tsUtxoSize)
147
147
, IntM " delegMapSize" (fromIntegral tsDelegMapSize)
148
- , IntM " drepCount" (fromIntegral tsDRepCount)
149
- , IntM " drepMapSize" (fromIntegral tsDRepMapSize)]
148
+ -- , IntM "drepCount" (fromIntegral tsDRepCount)
149
+ -- , IntM "drepMapSize" (fromIntegral tsDRepMapSize)
150
+ ]
150
151
151
152
152
153
instance MetaTrace LedgerMetrics where
@@ -157,8 +158,8 @@ instance MetaTrace LedgerMetrics where
157
158
metricsDocFor (Namespace _ [" LedgerMetrics" ]) =
158
159
[ (" utxoSize" , " Size of the current UTxO set (number of entries)" )
159
160
, (" delegMapSize" , " Size of the delegation map (number of delegators)" )
160
- , (" drepCount" , " Number of active DReps (Delegated Representatives)" )
161
- , (" drepMapSize" , " Size of the DRep map (number of stake keys mapped to DReps)" )
161
+ -- , ("drepCount", "Number of active DReps (Delegated Representatives)")
162
+ -- , ("drepMapSize", "Size of the DRep map (number of stake keys mapped to DReps)")
162
163
]
163
164
metricsDocFor _ = []
164
165
0 commit comments