Skip to content

Commit aa4b20c

Browse files
authored
build(deps): enable tracing feature in hyper-util (#13890)
This enables the `tracing` feature in the hyper-util dependency, allowing for the span context to properly propagate and avoiding having entries like this in the log, deprived from all the labels: ```log 2025-04-01T18:02:28.180957Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("https", 10.43.0.1) ``` An entry with full context conserved should look something like this instead: ```log 2025-04-01T18:28:45.647991Z DEBUG serverauthorizations:HTTP{http.method=GET http.url=https://10.43.0.1/apis/policy.linkerd.io/v1beta1/serverauthorizations?&watch=true&timeoutSeconds=290&allowWatchBookmarks=true&resourceVersion=2684 otel.name="watch" otel.kind="client" http.status_code=200}: hyper_util::client::legacy::pool: pooling idle connection for ("https", 10.43.0.1) ``` See hyperium/hyper-util#166
1 parent 46b5dca commit aa4b20c

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,7 @@ dependencies = [
14511451
"futures",
14521452
"http-body-util",
14531453
"hyper",
1454+
"hyper-util",
14541455
"ipnet",
14551456
"k8s-openapi",
14561457
"kube",

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ lto = "thin"
1818
gateway-api = "0.15"
1919
http = "1"
2020
hyper = "1"
21+
hyper-util = { version = "0.1", default-features = false, features = ["tracing"] }
2122
k8s-openapi = { version = "0.24", features = ["v1_32"] }
2223
kube = { version = "0.99", default-features = false }
2324
kubert = { version = "0.24", default-features = false }

policy-controller/runtime/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ futures = { version = "0.3", default-features = false }
2222
k8s-openapi = { workspace = true }
2323
http-body-util = "0.1"
2424
hyper = { workspace = true, features = ["http1", "http2", "server"] }
25+
hyper-util = { workspace = true }
2526
ipnet = { version = "2", default-features = false }
2627
openssl = { version = "0.10.71", optional = true }
2728
parking_lot = "0.12"

policy-test/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ anyhow = "1"
1010
bytes = "1"
1111
http-body-util = "0.1"
1212
hyper = { workspace = true, features = ["client", "http2"] }
13-
hyper-util = { version = "0.1" }
13+
hyper-util = { workspace = true }
1414
futures = { version = "0.3", default-features = false }
1515
ipnet = "2"
1616
k8s-openapi = { workspace = true }

0 commit comments

Comments
 (0)