feat(transport): Add tracing support to server (#175)

* feat(transport): Add tracing to server

* Add tracing example

* Fix duplicate versions of tracing-subscriber
This commit is contained in:
Lucio Franco
2019-12-11 19:45:11 -05:00
committed by GitHub
parent 1626c2eae0
commit f46a45401d
8 changed files with 197 additions and 10 deletions
+14
View File
@@ -66,6 +66,14 @@ path = "src/multiplex/client.rs"
name = "gcp-client"
path = "src/gcp/client.rs"
[[bin]]
name = "tracing-client"
path = "src/tracing/client.rs"
[[bin]]
name = "tracing-server"
path = "src/tracing/server.rs"
[dependencies]
tonic = { path = "../tonic", features = ["tls"] }
bytes = "0.4"
@@ -82,6 +90,12 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rand = "0.6"
# Tracing
tracing = "0.1"
tracing-subscriber = { version = "0.2.0-alpha", features = ["tracing-log"] }
tracing-attributes = "0.1"
tracing-futures = "0.2"
# Required for wellknown types
prost-types = "0.5"