chore(examples): Remove tracing-attributes from dependencies (#1289)
This commit is contained in:
+1
-2
@@ -240,7 +240,7 @@ reflection = ["dep:tonic-reflection"]
|
|||||||
autoreload = ["tokio-stream/net", "dep:listenfd"]
|
autoreload = ["tokio-stream/net", "dep:listenfd"]
|
||||||
health = ["dep:tonic-health"]
|
health = ["dep:tonic-health"]
|
||||||
grpc-web = ["dep:tonic-web", "dep:bytes", "dep:http", "dep:hyper", "dep:tracing-subscriber"]
|
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 = ["dep:futures", "dep:tower", "dep:hyper", "dep:http", "dep:http-body", "dep:warp"]
|
||||||
hyper-warp-multiplex = ["hyper-warp"]
|
hyper-warp-multiplex = ["hyper-warp"]
|
||||||
uds = ["tokio-stream/net", "dep:tower", "dep:hyper"]
|
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 = { version = "1.0", features = ["derive"], optional = true }
|
||||||
serde_json = { version = "1.0", optional = true }
|
serde_json = { version = "1.0", optional = true }
|
||||||
tracing = { version = "0.1.16", 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 }
|
tracing-subscriber = { version = "0.3", features = ["tracing-log", "fmt"], optional = true }
|
||||||
prost-types = { version = "0.11", optional = true }
|
prost-types = { version = "0.11", optional = true }
|
||||||
http = { version = "0.2", optional = true }
|
http = { version = "0.2", optional = true }
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ pub mod hello_world {
|
|||||||
}
|
}
|
||||||
|
|
||||||
use hello_world::{greeter_client::GreeterClient, HelloRequest};
|
use hello_world::{greeter_client::GreeterClient, HelloRequest};
|
||||||
use tracing_attributes::instrument;
|
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
@@ -16,7 +15,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument]
|
#[tracing::instrument]
|
||||||
async fn say_hi(name: String) -> Result<(), Box<dyn std::error::Error>> {
|
async fn say_hi(name: String) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let mut client = GreeterClient::connect("http://[::1]:50051").await?;
|
let mut client = GreeterClient::connect("http://[::1]:50051").await?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user