feat(tvix/tracing): http trace propagation
Introduces a helper function within tvix-tracing that returns a reqwest tracing middleware that will ingest the traceparent if otlp is enabled. It is feature flagged in tvix-tracing so not every consumer of that library automatically has reqwest in its dependencies. Tested using netcat to verify that the `traceparent` header is there if otlp is enabled and missing if otlp feature is disabled. Change-Id: I5abccae777b725f5ff7382e3686165383c477a39 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11886 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
7f8da5e6a9
commit
618aacaa61
10 changed files with 302 additions and 17 deletions
|
|
@ -36,9 +36,10 @@ tvix-castore = { path = "../castore" }
|
|||
url = "2.4.0"
|
||||
walkdir = "2.4.0"
|
||||
reqwest = { version = "0.11.22", features = ["rustls-tls-native-roots", "stream"], default-features = false }
|
||||
reqwest-middleware = "0.2.5"
|
||||
lru = "0.12.3"
|
||||
parking_lot = "0.12.2"
|
||||
tvix-tracing = { path = "../tracing", features = ["tonic"] }
|
||||
tvix-tracing = { path = "../tracing", features = ["tonic", "reqwest"] }
|
||||
tracing = "0.1.40"
|
||||
tracing-indicatif = "0.3.6"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue