Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Nov 24, 2023
1 parent 1430e2f commit 9006c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ pub mod telemetry {

pub fn span_error(&self, err: &ErrorObjectOwned) {
get_active_span(|span| {
span.set_status(Status::error(format!("{}", err.message())));
span.set_status(Status::error(err.message().to_string()));
span.set_attribute(KeyValue::new("error.type", format!("{}", ErrorCode::from(err.code()))));
span.set_attribute(KeyValue::new("error.msg", format!("{}", err.message())));
span.set_attribute(KeyValue::new("error.msg", err.message().to_string()));
span.set_attribute(KeyValue::new("error.stack", format!("{}", err)));
});
}
Expand Down

0 comments on commit 9006c38

Please sign in to comment.