Skip to content

Commit

Permalink
Format...
Browse files Browse the repository at this point in the history
  • Loading branch information
cottinisimone committed May 17, 2024
1 parent cd39776 commit 2b51425
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/e2e/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,18 @@ async fn error_layer_enrich_errored_spans() {

assert_eq!(spans[0].logs.len(), 1);

let err_msg = spans[0].logs[0].fields.iter().find(|f| f.key == "error.message");
let err_kind = spans[0].logs[0].fields.iter().find(|f| f.key == "error.type");
let err_stack = spans[0].logs[0].fields.iter().find(|f| f.key == "error.stack");
let err_msg = spans[0].logs[0]
.fields
.iter()
.find(|f| f.key == "error.message");
let err_kind = spans[0].logs[0]
.fields
.iter()
.find(|f| f.key == "error.type");
let err_stack = spans[0].logs[0]
.fields
.iter()
.find(|f| f.key == "error.stack");

assert_eq!("Error: error message", err_msg.unwrap().v_str);
assert_eq!("Error", err_kind.unwrap().v_str);
Expand Down

0 comments on commit 2b51425

Please sign in to comment.