summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_entry_point_impl.cpp
diff options
context:
space:
mode:
authorVojislav Stojkovic <vojislav.stojkovic@mongodb.com>2022-10-20 20:27:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-20 21:59:20 +0000
commit9027627ca94b5dbdcd741fcb520c45ee2dcbd184 (patch)
tree5c7c709076521508d788a22d849fce00a3fcb44c /src/mongo/transport/service_entry_point_impl.cpp
parent2de14f9eec1efcb0c9663cdf84760156ff1de196 (diff)
downloadmongo-9027627ca94b5dbdcd741fcb520c45ee2dcbd184.tar.gz
SERVER-67887 Add metrics for the first non-auth command on an ingress connection
Diffstat (limited to 'src/mongo/transport/service_entry_point_impl.cpp')
-rw-r--r--src/mongo/transport/service_entry_point_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/transport/service_entry_point_impl.cpp b/src/mongo/transport/service_entry_point_impl.cpp
index 35bdb872a12..67e04440989 100644
--- a/src/mongo/transport/service_entry_point_impl.cpp
+++ b/src/mongo/transport/service_entry_point_impl.cpp
@@ -58,6 +58,7 @@
#include "mongo/transport/service_executor_reserved.h"
#include "mongo/transport/service_executor_synchronous.h"
#include "mongo/transport/session.h"
+#include "mongo/transport/session_auth_metrics.h"
#include "mongo/transport/session_workflow.h"
#include "mongo/util/duration.h"
#include "mongo/util/hierarchical_acquisition.h"
@@ -292,6 +293,9 @@ void ServiceEntryPointImpl::configureServiceExecutorContext(ServiceContext::Uniq
void ServiceEntryPointImpl::startSession(transport::SessionHandle session) {
invariant(session);
+
+ transport::SessionAuthMetrics::get(*session).onSessionStarted(_svcCtx->getFastClockSource());
+
// Setup the restriction environment on the Session, if the Session has local/remote Sockaddrs
const auto& remoteAddr = session->remoteAddr();
const auto& localAddr = session->localAddr();