feat(tvix/nar-bridge): wire up metrics layer

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>
This commit is contained in:
Florian Klink 2024-09-29 23:34:43 +02:00 committed by flokli
parent 5f670a2f67
commit 02903133f4
7 changed files with 112 additions and 5 deletions

View file

@ -144,6 +144,8 @@ tonic-health = { version = "0.12.2", default-features = false }
tonic-reflection = "0.12.2"
tower = "0.4.13"
tower-http = "0.5.2"
# https://github.com/francoposa/tower-otel-http-metrics/pull/13
tower-otel-http-metrics = { git = "https://github.com/francoposa/tower-otel-http-metrics", rev = "2023a58e7287a691872f8e75f433179d29d1b439"}
tracing = "0.1.40"
tracing-indicatif = "0.3.6"
tracing-opentelemetry = "0.28.0"