File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ exporters:
18
18
file/traces :
19
19
path : /tmp/traces.json
20
20
debug :
21
- verbosity : detailed
22
21
23
22
service :
24
23
pipelines :
Original file line number Diff line number Diff line change @@ -1013,6 +1013,16 @@ async fn test_otel() {
1013
1013
// .with_max_delay(Duration::from_secs(30))
1014
1014
// .with_max_times(5);
1015
1015
1016
+ let traces_output_json =
1017
+ ( || async { parse_exporter_output ( traces_output_file. as_file ( ) ) . await } )
1018
+ . retry ( exponential_backoff)
1019
+ . await
1020
+ . unwrap ( ) ;
1021
+ let spans = & traces_output_json[ "resourceSpans" ] [ 0 ] [ "scopeSpans" ] [ 0 ] ;
1022
+ assert_eq ! ( spans[ "scope" ] [ "name" ] , "kubewarden-policy-server" ) ;
1023
+ println ! ( "traces check" ) ;
1024
+
1025
+
1016
1026
let metrics_output_json = ( || async {
1017
1027
let out = otelc. stdout_to_vec ( ) . await . unwrap ( ) ;
1018
1028
println ! (
@@ -1051,15 +1061,6 @@ async fn test_otel() {
1051
1061
) ;
1052
1062
println ! ( "metrics check" ) ;
1053
1063
1054
- // let traces_output_json =
1055
- // (|| async { parse_exporter_output(traces_output_file.as_file()).await })
1056
- // .retry(exponential_backoff)
1057
- // .await
1058
- // .unwrap();
1059
- // let spans = &traces_output_json["resourceSpans"][0]["scopeSpans"][0];
1060
- // assert_eq!(spans["scope"]["name"], "kubewarden-policy-server");
1061
- // println!("traces check");
1062
-
1063
1064
otelc. stop ( ) . await . unwrap ( ) ;
1064
1065
}
1065
1066
You can’t perform that action at this time.
0 commit comments