Skip to content

Commit

Permalink
remove tracing_subscriber from client example
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Aug 6, 2024
1 parent 0f690ae commit 2bce070
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ http-body-util = "0.1.0"
tokio = { version = "1", features = ["macros", "test-util", "signal"] }
tokio-test = "0.4"
pretty_env_logger = "0.5"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }

[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dev-dependencies]
pnet_datalink = "0.35.0"
Expand Down
13 changes: 0 additions & 13 deletions examples/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,9 @@ use http_body_util::Empty;
use hyper::Request;
use hyper_util::client::legacy::{connect::HttpConnector, Client};
use tracing::{info_span, Instrument};
use tracing_subscriber::{
fmt::{self, format::FmtSpan},
prelude::*,
EnvFilter,
};

#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let fmt_layer = fmt::layer()
.with_span_events(FmtSpan::CLOSE) // show time elapsed in spans
.with_timer(fmt::time::Uptime::default());
tracing_subscriber::registry()
.with(EnvFilter::from_default_env())
.with(fmt_layer)
.init();

let url = match env::args().nth(1) {
Some(url) => url,
None => {
Expand Down

0 comments on commit 2bce070

Please sign in to comment.