MINOR: stream/stats: Expose the total number of streams ever created in stats
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Sep 2024 15:16:00 +0000 (17:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 17:59:58 +0000 (18:59 +0100)
commitacc009f882d22e4a20b8de561037bc5761050a9e
treea127edba6ef52ac8063c77cfe8d41c95a44cb4d4
parentfb9c53581bcf8df687738a46f6bf9c25f4122540
MINOR: stream/stats: Expose the total number of streams ever created in stats

A shared counter is added in the thread context to track the total number of
streams created on the thread. This number is then reported in stats. It
will be a useful information to diagnose some bugs.

(cherry picked from commit 273d322b6fa8117423bbdc9b818002563d4fd3a3)
[wt: ctx adj in tinfo-t]
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/stats-t.h
include/haproxy/tinfo-t.h
src/stats.c
src/stream.c