Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
utpilla committed Jun 17, 2024
1 parent 044e597 commit cefbcf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions examples/tracing-grpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ async fn greet() -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static
status_code.to_string()
}
};
cx.span().add_event(
"Got response!",
vec![KeyValue::new("status", status)],
);
cx.span()
.add_event("Got response!", vec![KeyValue::new("status", status)]);

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion examples/tracing-http-propagator/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async fn send_request(
.await?;

cx.span().add_event(
"Got response!".to_string(),
"Got response!",
vec![KeyValue::new("status", res.status().to_string())],
);

Expand Down

0 comments on commit cefbcf0

Please sign in to comment.