From e2aeaa0956fb6ff812aba5ce09c55816f75b28d1 Mon Sep 17 00:00:00 2001 From: cyan317 <120398799+cindyyan317@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:06:27 +0100 Subject: [PATCH] chore: Add counter for total messages waiting to be sent (#1691) --- src/web/impl/WsBase.hpp | 21 +++++++++- tests/unit/web/ServerTests.cpp | 71 +++++++++++++++++++++++++++------- 2 files changed, 76 insertions(+), 16 deletions(-) diff --git a/src/web/impl/WsBase.hpp b/src/web/impl/WsBase.hpp index 0ea0fae6..cdc606a1 100644 --- a/src/web/impl/WsBase.hpp +++ b/src/web/impl/WsBase.hpp @@ -23,6 +23,9 @@ #include "rpc/common/Types.hpp" #include "util/Taggable.hpp" #include "util/log/Logger.hpp" +#include "util/prometheus/Gauge.hpp" +#include "util/prometheus/Label.hpp" +#include "util/prometheus/Prometheus.hpp" #include "web/dosguard/DOSGuardInterface.hpp" #include "web/interface/Concepts.hpp" #include "web/interface/ConnectionBase.hpp" @@ -71,6 +74,8 @@ template