@@ -905,26 +905,26 @@ mod tests {
905
905
#[ tokio:: test]
906
906
async fn test_get_traces_from_request_body_with_span_links ( ) {
907
907
let trace_input = json ! ( [ [ {
908
- "service" : "test-service" ,
909
- "name" : "test-name" ,
910
- "resource" : "test-resource" ,
911
- "trace_id" : 111 ,
912
- "span_id" : 222 ,
913
- "parent_id" : 333 ,
914
- "start" : 1 ,
915
- "duration" : 5 ,
916
- "error" : 0 ,
917
- "meta" : { } ,
918
- "metrics" : { } ,
919
- "span_links" : [ {
920
- "trace_id" : 999 ,
921
- "span_id" : 888 ,
922
- "trace_id_high" : 777 ,
923
- "attributes" : { "key" : "value" } ,
924
- "tracestate" : "vendor=value"
925
- // flags field intentionally omitted
926
- } ]
927
- } ] ] ) ;
908
+ "service" : "test-service" ,
909
+ "name" : "test-name" ,
910
+ "resource" : "test-resource" ,
911
+ "trace_id" : 111 ,
912
+ "span_id" : 222 ,
913
+ "parent_id" : 333 ,
914
+ "start" : 1 ,
915
+ "duration" : 5 ,
916
+ "error" : 0 ,
917
+ "meta" : { } ,
918
+ "metrics" : { } ,
919
+ "span_links" : [ {
920
+ "trace_id" : 999 ,
921
+ "span_id" : 888 ,
922
+ "trace_id_high" : 777 ,
923
+ "attributes" : { "key" : "value" } ,
924
+ "tracestate" : "vendor=value"
925
+ // flags field intentionally omitted
926
+ } ]
927
+ } ] ] ) ;
928
928
929
929
let expected_output = vec ! [ vec![ pb:: Span {
930
930
service: "test-service" . to_string( ) ,
@@ -944,9 +944,7 @@ mod tests {
944
944
trace_id: 999 ,
945
945
span_id: 888 ,
946
946
trace_id_high: 777 ,
947
- attributes: HashMap :: from( [
948
- ( "key" . to_string( ) , "value" . to_string( ) )
949
- ] ) ,
947
+ attributes: HashMap :: from( [ ( "key" . to_string( ) , "value" . to_string( ) ) ] ) ,
950
948
tracestate: "vendor=value" . to_string( ) ,
951
949
flags: 0 , // Should default to 0 when omitted
952
950
} ] ,
0 commit comments