diff options
author | Florian Klink <flokli@flokli.de> | 2024-09-29T21·34+0200 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2024-11-23T09·40+0000 |
commit | 02903133f4336c203efdf835979c5790c035189f (patch) | |
tree | bc22a3c0b10f6c0461cc0a1cd37ad155fc731011 /tvix/nar-bridge/Cargo.toml | |
parent | 5f670a2f67723436f020d96dbe74fe01db51ebf7 (diff) |
feat(tvix/nar-bridge): wire up metrics layer r/8952
This provides some global HTTP statistics. Change-Id: I8bd3e034123154a49d94720b0c8d0c3babde5ae3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12557 Reviewed-by: Jonas Chevalier <zimbatm@zimbatm.com> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'tvix/nar-bridge/Cargo.toml')
-rw-r--r-- | tvix/nar-bridge/Cargo.toml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tvix/nar-bridge/Cargo.toml b/tvix/nar-bridge/Cargo.toml index 79d65f77c1d3..e2d50befb68e 100644 --- a/tvix/nar-bridge/Cargo.toml +++ b/tvix/nar-bridge/Cargo.toml @@ -16,11 +16,13 @@ futures = { workspace = true } itertools = { workspace = true } prost = { workspace = true } nix-compat = { path = "../nix-compat", features = ["async"] } +opentelemetry = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true } tokio-listener = { workspace = true, features = ["axum07", "clap", "multi-listener", "sd_listen"] } tokio-util = { workspace = true, features = ["io", "io-util", "compat"] } tonic = { workspace = true, features = ["tls", "tls-roots"] } +tower-otel-http-metrics = { workspace = true, optional = true } tvix-castore = { path = "../castore" } tvix-store = { path = "../store" } tvix-tracing = { path = "../tracing", features = ["tonic", "axum"] } @@ -38,7 +40,7 @@ tonic-build = { workspace = true } [features] default = ["otlp"] -otlp = ["tvix-tracing/otlp"] +otlp = ["tvix-tracing/otlp", "tower-otel-http-metrics"] xp-store-composition-cli = ["tvix-store/xp-composition-cli"] [dev-dependencies] |