Skip to content

Commit 5f7432e

Browse files
committed
remove tracing from example
1 parent 2bce070 commit 5f7432e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/client.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use std::env;
33
use http_body_util::Empty;
44
use hyper::Request;
55
use hyper_util::client::legacy::{connect::HttpConnector, Client};
6-
use tracing::{info_span, Instrument};
76

87
#[tokio::main(flavor = "current_thread")]
98
async fn main() -> Result<(), Box<dyn std::error::Error>> {
@@ -29,8 +28,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
2928
.uri(url)
3029
.body(Empty::<bytes::Bytes>::new())?;
3130

32-
let span = info_span!("request", uri = %req.uri());
33-
let resp = client.request(req).instrument(span).await?;
31+
let resp = client.request(req).await?;
3432

3533
eprintln!("{:?} {:?}", resp.version(), resp.status());
3634
eprintln!("{:#?}", resp.headers());

0 commit comments

Comments
 (0)