From 551b2e5c53226b2811c5ae3f37e5e1b79c782326 Mon Sep 17 00:00:00 2001 From: Ben Pope Date: Fri, 22 Jul 2022 22:05:07 +0100 Subject: [PATCH] pandaproxy: Initialize error metrics to 0 Signed-off-by: Ben Pope --- src/v/pandaproxy/probe.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v/pandaproxy/probe.h b/src/v/pandaproxy/probe.h index f5f3455dab24..fb2e7300de0e 100644 --- a/src/v/pandaproxy/probe.h +++ b/src/v/pandaproxy/probe.h @@ -52,9 +52,9 @@ class http_status_metric { auto auto_measure() { return measurement{this, _hist.auto_measure()}; } hdr_hist _hist; - int64_t _5xx_count; - int64_t _4xx_count; - int64_t _3xx_count; + int64_t _5xx_count{0}; + int64_t _4xx_count{0}; + int64_t _3xx_count{0}; }; class probe {