File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
opentelemetry-sdk/src/metrics Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -374,8 +374,8 @@ mod tests {
374374
375375 #[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
376376 async fn counter_aggregation_overflow_cumulative ( ) {
377- counter_aggregation_overflow_helper ( Temporality :: Delta ) ;
378- counter_aggregation_overflow_helper_custom_limit ( Temporality :: Delta ) ;
377+ counter_aggregation_overflow_helper ( Temporality :: Cumulative ) ;
378+ counter_aggregation_overflow_helper_custom_limit ( Temporality :: Cumulative ) ;
379379 }
380380
381381 #[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
@@ -2550,7 +2550,7 @@ mod tests {
25502550 assert_eq ! ( data_point. value, 100 ) ;
25512551 } else {
25522552 // For cumulative, overflow should still be there, and new points should not be added.
2553- assert_eq ! ( sum. data_points. len( ) , 2002 ) ;
2553+ assert_eq ! ( sum. data_points. len( ) , cardinality_limit + 1 + 1 ) ;
25542554 let data_point =
25552555 find_sum_datapoint_with_key_value ( & sum. data_points , "otel.metric.overflow" , "true" )
25562556 . expect ( "overflow point expected" ) ;
You can’t perform that action at this time.
0 commit comments