@@ -952,7 +952,7 @@ async fn test_otel() {
952
952
let exponential_backoff = ExponentialBuilder :: default ( )
953
953
. with_min_delay ( Duration :: from_secs ( 10 ) )
954
954
. with_max_delay ( Duration :: from_secs ( 30 ) )
955
- . with_max_times ( 10 ) ;
955
+ . with_max_times ( 5 ) ;
956
956
957
957
let metrics_output_json =
958
958
( || async { parse_exporter_output ( metrics_output_file. as_file ( ) ) . await } )
@@ -979,6 +979,7 @@ async fn test_otel() {
979
979
"metrics_output_json: {}" ,
980
980
serde_json:: to_string_pretty( & metrics_output_json) . unwrap( )
981
981
) ;
982
+ println ! ( "metrics check" ) ;
982
983
983
984
let traces_output_json =
984
985
( || async { parse_exporter_output ( traces_output_file. as_file ( ) ) . await } )
@@ -987,6 +988,7 @@ async fn test_otel() {
987
988
. unwrap ( ) ;
988
989
let spans = & traces_output_json[ "resourceSpans" ] [ 0 ] [ "scopeSpans" ] [ 0 ] ;
989
990
assert_eq ! ( spans[ "scope" ] [ "name" ] , "kubewarden-policy-server" ) ;
991
+ println ! ( "traces check" ) ;
990
992
991
993
otelc. stop ( ) . await . unwrap ( ) ;
992
994
}
@@ -1002,6 +1004,7 @@ async fn parse_exporter_output(
1002
1004
. read_line ( & mut exporter_output)
1003
1005
. expect ( "failed to read exporter output" ) ;
1004
1006
1007
+ println ! ( "exporter_output_json: {}" , exporter_output. clone( ) ) ;
1005
1008
serde_json:: from_str ( & exporter_output)
1006
1009
}
1007
1010
0 commit comments