File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,6 @@ Thumbs.db
2424# Claude
2525/.claude
2626/ui /.claude
27+
28+ # e2e / load tests
29+ wallets.json
Original file line number Diff line number Diff line change 5050 // TODO: the integration test breaks because Minio doesn't support etag
5151 let writer = self . writer . clone ( ) ;
5252 let metrics = self . metrics . clone ( ) ;
53+ self . metrics . in_flight_archive_tasks . increment ( 1.0 ) ;
5354 tokio:: spawn ( async move {
5455 let archive_start = Instant :: now ( ) ;
5556 if let Err ( e) = writer. archive_event ( event) . await {
6061 . record ( archive_start. elapsed ( ) . as_secs_f64 ( ) ) ;
6162 metrics. events_processed . increment ( 1 ) ;
6263 }
64+ metrics. in_flight_archive_tasks . decrement ( 1.0 ) ;
6365 } ) ;
6466
6567 let commit_start = Instant :: now ( ) ;
Original file line number Diff line number Diff line change 1- use metrics:: { Counter , Histogram } ;
1+ use metrics:: { Counter , Gauge , Histogram } ;
22use metrics_derive:: Metrics ;
33
44#[ derive( Metrics , Clone ) ]
@@ -33,4 +33,7 @@ pub struct Metrics {
3333
3434 #[ metric( describe = "Total S3 writes skipped due to dedup" ) ]
3535 pub s3_writes_skipped : Counter ,
36+
37+ #[ metric( describe = "Number of in-flight archive tasks" ) ]
38+ pub in_flight_archive_tasks : Gauge ,
3639}
You can’t perform that action at this time.
0 commit comments