@@ -29,7 +29,7 @@ const METRIC_RETRY: &str = "external_retry";
2929const METRIC_ERROR : & str = "external_error" ;
3030const METRIC_RUNNING_REQUESTS : & str = "external_running_requests" ;
3131const METRIC_REQUESTS : & str = "external_requests" ;
32- const METRIC_EXTERNAL_BLOCK_ROWS : & str = "external_block_rows " ;
32+ const METRIC_EXTERNAL_BATCH_ROWS : & str = "external_batch_rows " ;
3333
3434static REQUEST_EXTERNAL_DURATION : LazyLock < FamilyHistogram < VecLabels > > =
3535 LazyLock :: new ( || register_histogram_family_in_milliseconds ( METRIC_REQUEST_EXTERNAL_DURATION ) ) ;
@@ -49,8 +49,8 @@ static RUNNING_REQUESTS_EXTERNAL: LazyLock<FamilyCounter<VecLabels>> =
4949static REQUESTS_EXTERNAL_EXTERNAL : LazyLock < FamilyCounter < VecLabels > > =
5050 LazyLock :: new ( || register_counter_family ( METRIC_REQUESTS ) ) ;
5151
52- static EXTERNAL_BLOCK_ROWS : LazyLock < FamilyHistogram < VecLabels > > =
53- LazyLock :: new ( || register_histogram_family_in_rows ( METRIC_EXTERNAL_BLOCK_ROWS ) ) ;
52+ static EXTERNAL_BATCH_ROWS : LazyLock < FamilyHistogram < VecLabels > > =
53+ LazyLock :: new ( || register_histogram_family_in_rows ( METRIC_EXTERNAL_BATCH_ROWS ) ) ;
5454
5555const LABEL_FUNCTION_NAME : & str = "function_name" ;
5656const LABEL_ERROR_KIND : & str = "error_kind" ;
@@ -69,9 +69,9 @@ pub fn record_request_external_duration(function_name: impl Into<String>, durati
6969 . observe ( duration. as_millis_f64 ( ) ) ;
7070}
7171
72- pub fn record_request_external_block_rows ( function_name : impl Into < String > , rows : usize ) {
72+ pub fn record_request_external_batch_rows ( function_name : impl Into < String > , rows : usize ) {
7373 let labels = & vec ! [ ( LABEL_FUNCTION_NAME , function_name. into( ) ) ] ;
74- EXTERNAL_BLOCK_ROWS
74+ EXTERNAL_BATCH_ROWS
7575 . get_or_create ( labels)
7676 . observe ( rows as f64 ) ;
7777}
0 commit comments