v0.34.0_1
This commit is contained in:
1 parent
9cfc4588cc
commit
f20c8da718
25 files changed
+694
-117
No files matched your search
@@ -107,6 +107,19 @@ assert "if !headers.contains_key(http::header::COOKIE)" in source("src/proxy/hea
|
||||
assert "if !headers.contains_key(http::header::SET_COOKIE)" in source("src/proxy/headers.rs")
|
||||
assert 'version = "0.34.0"' in source("Cargo.toml")
|
||||
|
||||
# Full exchange duration histogram still exports cumulative Prometheus series,
|
||||
# but only one exclusive bucket is updated per request; per-vhost and Docker
|
||||
# exporters must reconstruct bucket counts from exactly the same interface.
|
||||
histogram = source("src/metrics/vhost.rs")
|
||||
exporter = source("src/prometheus/docker_misc.rs")
|
||||
assert "let bucket = DURATION_BUCKETS_US.partition_point" in histogram
|
||||
assert "self.buckets[bucket].fetch_add(1, Ordering::Relaxed);" in histogram
|
||||
assert "pub fn duration_histogram(&self)" in histogram
|
||||
assert exporter.count("let (buckets, count) = m.duration_histogram();") == 2
|
||||
assert "rust_proxy_vhost_exchange_duration_seconds_bucket" in exporter
|
||||
assert "rust_proxy_docker_vhost_exchange_duration_seconds_bucket" in exporter
|
||||
assert "exclusive_bins_reconstruct_exact_prometheus_cumulative_boundaries" in source("src/metrics/vhost/tests.rs")
|
||||
|
||||
for file in (ROOT / "src").rglob("*.rs"):
|
||||
if "/tests/" in file.as_posix() or file.name == "tests.rs":
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user