From d8f1f2e6f6a15067660994752c1e0b9179be527b Mon Sep 17 00:00:00 2001 From: "Aode (Lion)" Date: Tue, 8 Mar 2022 12:10:47 -0600 Subject: [PATCH] Update readme example --- Cargo.toml | 2 +- README.md | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bd13704..6c6f8d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tracing-awc" description = "Tracing instrumentation for the awc http client" -version = "0.1.1" +version = "0.1.2" authors = ["asonix Result<(), Box> { - Client::new().get(url).propagate().send().await?; + Client::builder() + .wrap(Tracing) + .finish() + .get(url) + .send() + .await?; Ok(()) }