Skip to content

Commit 418f00b

Browse files
committed
lint
1 parent 83c96fe commit 418f00b

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

trace-utils/src/trace_utils.rs

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -905,26 +905,26 @@ mod tests {
905905
#[tokio::test]
906906
async fn test_get_traces_from_request_body_with_span_links() {
907907
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+
}]]);
928928

929929
let expected_output = vec![vec![pb::Span {
930930
service: "test-service".to_string(),
@@ -944,9 +944,7 @@ mod tests {
944944
trace_id: 999,
945945
span_id: 888,
946946
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())]),
950948
tracestate: "vendor=value".to_string(),
951949
flags: 0, // Should default to 0 when omitted
952950
}],

0 commit comments

Comments
 (0)