diff options
author | Reo Kimura <reo.kimura@mongodb.com> | 2022-04-19 17:47:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-19 19:19:55 +0000 |
commit | ee1a5f6c6cffda99cfdc1abc9ec29c5daa2cfaa2 (patch) | |
tree | fb88daf46e01d8b7bbd8f3e218ca085889569a5f /src/mongo/db/commands | |
parent | 401fdca172a960a2dcac009c739f4f53ab587e12 (diff) | |
download | mongo-ee1a5f6c6cffda99cfdc1abc9ec29c5daa2cfaa2.tar.gz |
SERVER-63263 Add metric for connection establishment once MongoDB accepts() a new connection on a socket
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/server_status_servers.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/commands/server_status_servers.cpp b/src/mongo/db/commands/server_status_servers.cpp index 34814f3a3df..80cdd8ec25d 100644 --- a/src/mongo/db/commands/server_status_servers.cpp +++ b/src/mongo/db/commands/server_status_servers.cpp @@ -86,10 +86,10 @@ public: networkCounter.append(b); appendMessageCompressionStats(&b); + auto svcCtx = opCtx->getServiceContext(); { BSONObjBuilder section = b.subobjStart("serviceExecutors"); - auto svcCtx = opCtx->getServiceContext(); if (auto executor = transport::ServiceExecutorSynchronous::get(svcCtx)) { executor->appendStats(§ion); } @@ -102,6 +102,8 @@ public: executor->appendStats(§ion); } } + if (auto tl = svcCtx->getTransportLayer()) + tl->appendStats(&b); return b.obj(); } |