From 1547f968b459c4ed1db098dd822425c8b86eb518 Mon Sep 17 00:00:00 2001 From: tottoto Date: Thu, 23 Feb 2023 19:06:37 +0900 Subject: [PATCH] chore(examples): Remove tracing-attributes from dependencies (#1289) --- examples/Cargo.toml | 3 +-- examples/src/tracing/client.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 35b96b6..facb577 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -240,7 +240,7 @@ reflection = ["dep:tonic-reflection"] autoreload = ["tokio-stream/net", "dep:listenfd"] health = ["dep:tonic-health"] grpc-web = ["dep:tonic-web", "dep:bytes", "dep:http", "dep:hyper", "dep:tracing-subscriber"] -tracing = ["dep:tracing", "dep:tracing-attributes", "dep:tracing-subscriber"] +tracing = ["dep:tracing", "dep:tracing-subscriber"] hyper-warp = ["dep:futures", "dep:tower", "dep:hyper", "dep:http", "dep:http-body", "dep:warp"] hyper-warp-multiplex = ["hyper-warp"] uds = ["tokio-stream/net", "dep:tower", "dep:hyper"] @@ -275,7 +275,6 @@ rand = { version = "0.8", optional = true } serde = { version = "1.0", features = ["derive"], optional = true } serde_json = { version = "1.0", optional = true } tracing = { version = "0.1.16", optional = true } -tracing-attributes = { version = "0.1", optional = true } tracing-subscriber = { version = "0.3", features = ["tracing-log", "fmt"], optional = true } prost-types = { version = "0.11", optional = true } http = { version = "0.2", optional = true } diff --git a/examples/src/tracing/client.rs b/examples/src/tracing/client.rs index 825c4a3..46ded00 100644 --- a/examples/src/tracing/client.rs +++ b/examples/src/tracing/client.rs @@ -3,7 +3,6 @@ pub mod hello_world { } use hello_world::{greeter_client::GreeterClient, HelloRequest}; -use tracing_attributes::instrument; #[tokio::main] async fn main() -> Result<(), Box> { @@ -16,7 +15,7 @@ async fn main() -> Result<(), Box> { Ok(()) } -#[instrument] +#[tracing::instrument] async fn say_hi(name: String) -> Result<(), Box> { let mut client = GreeterClient::connect("http://[::1]:50051").await?;