File tree Expand file tree Collapse file tree 4 files changed +1
-34
lines changed Expand file tree Collapse file tree 4 files changed +1
-34
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ pub static TOTAL_INPUT_LLM_TOKENS_BY_DATE: Lazy<IntCounterVec> = Lazy::new(|| {
317
317
"Total input LLM tokens used by date" ,
318
318
)
319
319
. namespace ( METRICS_NAMESPACE ) ,
320
- & [ "model" , "date" ] ,
320
+ & [ "provider" , " model", "date" ] ,
321
321
)
322
322
. expect ( "metric can be created" )
323
323
} ) ;
Original file line number Diff line number Diff line change @@ -513,17 +513,6 @@ impl ObjectStorage for BlobStore {
513
513
. map_err ( ObjectStorageError :: PathError ) ?,
514
514
)
515
515
. await ?;
516
- increment_files_scanned_in_object_store_calls_by_date (
517
- "GET" ,
518
- 1 ,
519
- & Utc :: now ( ) . date_naive ( ) . to_string ( ) ,
520
- ) ;
521
- increment_bytes_scanned_in_object_store_calls_by_date (
522
- "GET" ,
523
- byts. len ( ) as u64 ,
524
- & Utc :: now ( ) . date_naive ( ) . to_string ( ) ,
525
- ) ;
526
- increment_object_store_calls_by_date ( "GET" , & Utc :: now ( ) . date_naive ( ) . to_string ( ) ) ;
527
516
res. push ( byts) ;
528
517
}
529
518
Original file line number Diff line number Diff line change @@ -494,17 +494,6 @@ impl ObjectStorage for Gcs {
494
494
. map_err ( ObjectStorageError :: PathError ) ?,
495
495
)
496
496
. await ?;
497
- increment_files_scanned_in_object_store_calls_by_date (
498
- "GET" ,
499
- 1 ,
500
- & Utc :: now ( ) . date_naive ( ) . to_string ( ) ,
501
- ) ;
502
- increment_bytes_scanned_in_object_store_calls_by_date (
503
- "GET" ,
504
- byts. len ( ) as u64 ,
505
- & Utc :: now ( ) . date_naive ( ) . to_string ( ) ,
506
- ) ;
507
- increment_object_store_calls_by_date ( "GET" , & Utc :: now ( ) . date_naive ( ) . to_string ( ) ) ;
508
497
res. push ( byts) ;
509
498
}
510
499
Original file line number Diff line number Diff line change @@ -658,17 +658,6 @@ impl ObjectStorage for S3 {
658
658
. map_err ( ObjectStorageError :: PathError ) ?,
659
659
)
660
660
. await ?;
661
- increment_files_scanned_in_object_store_calls_by_date (
662
- "GET" ,
663
- 1 ,
664
- & Utc :: now ( ) . date_naive ( ) . to_string ( ) ,
665
- ) ;
666
- increment_bytes_scanned_in_object_store_calls_by_date (
667
- "GET" ,
668
- byts. len ( ) as u64 ,
669
- & Utc :: now ( ) . date_naive ( ) . to_string ( ) ,
670
- ) ;
671
- increment_object_store_calls_by_date ( "GET" , & Utc :: now ( ) . date_naive ( ) . to_string ( ) ) ;
672
661
res. push ( byts) ;
673
662
}
674
663
// Record total files scanned
You can’t perform that action at this time.
0 commit comments