Skip to content

Commit 2bce070

Browse files
committed
remove tracing_subscriber from client example
1 parent 0f690ae commit 2bce070

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ http-body-util = "0.1.0"
3838
tokio = { version = "1", features = ["macros", "test-util", "signal"] }
3939
tokio-test = "0.4"
4040
pretty_env_logger = "0.5"
41-
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
4241

4342
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies]
4443
pnet_datalink = "0.35.0"

examples/client.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,9 @@ use http_body_util::Empty;
44
use hyper::Request;
55
use hyper_util::client::legacy::{connect::HttpConnector, Client};
66
use tracing::{info_span, Instrument};
7-
use tracing_subscriber::{
8-
fmt::{self, format::FmtSpan},
9-
prelude::*,
10-
EnvFilter,
11-
};
127

138
#[tokio::main(flavor = "current_thread")]
149
async fn main() -> Result<(), Box<dyn std::error::Error>> {
15-
let fmt_layer = fmt::layer()
16-
.with_span_events(FmtSpan::CLOSE) // show time elapsed in spans
17-
.with_timer(fmt::time::Uptime::default());
18-
tracing_subscriber::registry()
19-
.with(EnvFilter::from_default_env())
20-
.with(fmt_layer)
21-
.init();
22-
2310
let url = match env::args().nth(1) {
2411
Some(url) => url,
2512
None => {

0 commit comments

Comments
 (0)