@@ -249,33 +249,33 @@ private void InitializeMeter() {
249
249
) ;
250
250
251
251
Meter . CreateObservableCounter (
252
- $ "{ MetricNamePrefix } _bot_trades", ( ) => TradeStatistics . SelectMany < KeyValuePair < Bot , TradeStatistics > , Measurement < uint > > (
252
+ $ "{ MetricNamePrefix } _bot_trades", ( ) => TradeStatistics . SelectMany < KeyValuePair < Bot , TradeStatistics > , Measurement < int > > (
253
253
static kv => [
254
- new Measurement < uint > (
254
+ new Measurement < int > (
255
255
kv . Value . AcceptedOffers ,
256
256
new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) ,
257
257
new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ,
258
258
new KeyValuePair < string , object ? > ( TagNames . TradeOfferResult , "accepted" )
259
259
) ,
260
- new Measurement < uint > (
260
+ new Measurement < int > (
261
261
kv . Value . RejectedOffers ,
262
262
new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) ,
263
263
new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ,
264
264
new KeyValuePair < string , object ? > ( TagNames . TradeOfferResult , "rejected" )
265
265
) ,
266
- new Measurement < uint > (
266
+ new Measurement < int > (
267
267
kv . Value . IgnoredOffers ,
268
268
new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) ,
269
269
new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ,
270
270
new KeyValuePair < string , object ? > ( TagNames . TradeOfferResult , "ignored" )
271
271
) ,
272
- new Measurement < uint > (
272
+ new Measurement < int > (
273
273
kv . Value . BlacklistedOffers ,
274
274
new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) ,
275
275
new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ,
276
276
new KeyValuePair < string , object ? > ( TagNames . TradeOfferResult , "blacklisted" )
277
277
) ,
278
- new Measurement < uint > (
278
+ new Measurement < int > (
279
279
kv . Value . ConfirmedOffers ,
280
280
new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) ,
281
281
new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ,
@@ -287,12 +287,12 @@ private void InitializeMeter() {
287
287
) ;
288
288
289
289
Meter . CreateObservableCounter (
290
- $ "{ MetricNamePrefix } _bot_items_given", ( ) => TradeStatistics . Select ( static kv => new Measurement < uint > ( kv . Value . ItemsGiven , new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) , new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ) ) ,
290
+ $ "{ MetricNamePrefix } _bot_items_given", ( ) => TradeStatistics . Select ( static kv => new Measurement < int > ( kv . Value . ItemsGiven , new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) , new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ) ) ,
291
291
description : "Items given per bot"
292
292
) ;
293
293
294
294
Meter . CreateObservableCounter (
295
- $ "{ MetricNamePrefix } _bot_items_received", ( ) => TradeStatistics . Select ( static kv => new Measurement < uint > ( kv . Value . ItemsReceived , new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) , new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ) ) ,
295
+ $ "{ MetricNamePrefix } _bot_items_received", ( ) => TradeStatistics . Select ( static kv => new Measurement < int > ( kv . Value . ItemsReceived , new KeyValuePair < string , object ? > ( TagNames . BotName , kv . Key . BotName ) , new KeyValuePair < string , object ? > ( TagNames . SteamID , kv . Key . SteamID ) ) ) ,
296
296
description : "Items received per bot"
297
297
) ;
298
298
}
0 commit comments