summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands
diff options
context:
space:
mode:
authorReo Kimura <reo.kimura@mongodb.com>2022-04-19 17:47:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-19 19:19:55 +0000
commitee1a5f6c6cffda99cfdc1abc9ec29c5daa2cfaa2 (patch)
treefb88daf46e01d8b7bbd8f3e218ca085889569a5f /src/mongo/db/commands
parent401fdca172a960a2dcac009c739f4f53ab587e12 (diff)
downloadmongo-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.cpp4
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(&section);
}
@@ -102,6 +102,8 @@ public:
executor->appendStats(&section);
}
}
+ if (auto tl = svcCtx->getTransportLayer())
+ tl->appendStats(&b);
return b.obj();
}