feat: wire pending bytes and close reason into connz monitoring

This commit is contained in:
Joseph Doherty
2026-02-22 23:57:39 -05:00
parent 2fb14821e0
commit f5c0c4f906

View File

@@ -69,6 +69,8 @@ public sealed class ConnzHandler(NatsServer server)
Name = client.ClientOpts?.Name ?? "",
Lang = client.ClientOpts?.Lang ?? "",
Version = client.ClientOpts?.Version ?? "",
Pending = (int)client.PendingBytes,
Reason = client.CloseReason.ToReasonString(),
TlsVersion = client.TlsState?.TlsVersion ?? "",
TlsCipherSuite = client.TlsState?.CipherSuite ?? "",
};