@@ -322,8 +322,13 @@ pub static TOTAL_MEMORY_SPILL_IN_FLUSHING_OPERATION: Lazy<IntCounter> = Lazy::ne
322322 . expect ( "metric should be created" )
323323} ) ;
324324pub static TOTAL_MEMORY_SPILL_OPERATION_FAILED : Lazy < IntCounter > = Lazy :: new ( || {
325- IntCounter :: new ( "total_memory_spill_failed" , "memory capacity" )
326- . expect ( "metric should be created" )
325+ IntCounter :: new ( "total_memory_spill_failed" , "" ) . expect ( "metric should be created" )
326+ } ) ;
327+ pub static TOTAL_MEMORY_SPILL_TO_LOCALFILE_OPERATION_FAILED : Lazy < IntCounter > = Lazy :: new ( || {
328+ IntCounter :: new ( "total_memory_to_localfile_spill_failed" , "" ) . expect ( "metric should be created" )
329+ } ) ;
330+ pub static TOTAL_MEMORY_SPILL_TO_HDFS_OPERATION_FAILED : Lazy < IntCounter > = Lazy :: new ( || {
331+ IntCounter :: new ( "total_memory_to_hdfs_spill_failed" , "" ) . expect ( "metric should be created" )
327332} ) ;
328333pub static TOTAL_MEMORY_SPILL_TO_LOCALFILE : Lazy < IntCounter > = Lazy :: new ( || {
329334 IntCounter :: new (
@@ -631,7 +636,17 @@ fn register_custom_metrics() {
631636 . expect ( "total_memory_spill_operation must be registered" ) ;
632637 REGISTRY
633638 . register ( Box :: new ( TOTAL_MEMORY_SPILL_OPERATION_FAILED . clone ( ) ) )
634- . expect ( "total_memory_spill_operation_failed must be registered" ) ;
639+ . expect ( "total_memory_spill_failed must be registered" ) ;
640+ REGISTRY
641+ . register ( Box :: new (
642+ TOTAL_MEMORY_SPILL_TO_LOCALFILE_OPERATION_FAILED . clone ( ) ,
643+ ) )
644+ . expect ( "total_memory_to_localfile_spill_failed must be registered" ) ;
645+ REGISTRY
646+ . register ( Box :: new (
647+ TOTAL_MEMORY_SPILL_TO_HDFS_OPERATION_FAILED . clone ( ) ,
648+ ) )
649+ . expect ( "total_memory_to_hdfs_spill_failed must be registered" ) ;
635650 REGISTRY
636651 . register ( Box :: new ( TOTAL_APP_NUMBER . clone ( ) ) )
637652 . expect ( "total_app_number must be registered" ) ;
0 commit comments