We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bce070 commit 5f7432eCopy full SHA for 5f7432e
examples/client.rs
@@ -3,7 +3,6 @@ use std::env;
3
use http_body_util::Empty;
4
use hyper::Request;
5
use hyper_util::client::legacy::{connect::HttpConnector, Client};
6
-use tracing::{info_span, Instrument};
7
8
#[tokio::main(flavor = "current_thread")]
9
async fn main() -> Result<(), Box<dyn std::error::Error>> {
@@ -29,8 +28,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
29
28
.uri(url)
30
.body(Empty::<bytes::Bytes>::new())?;
31
32
- let span = info_span!("request", uri = %req.uri());
33
- let resp = client.request(req).instrument(span).await?;
+ let resp = client.request(req).await?;
34
35
eprintln!("{:?} {:?}", resp.version(), resp.status());
36
eprintln!("{:#?}", resp.headers());
0 commit comments