diff options
author | joshua <80741223+jlap199@users.noreply.github.com> | 2022-11-15 03:55:41 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-15 04:37:36 +0000 |
commit | 0fff039b24fa1fdf14d940c5de7dbfc90e59d5a6 (patch) | |
tree | 0dea056531605ccbd796a99554a3a6b2c11cfd21 /src/mongo/db/curop.cpp | |
parent | 942719f40be8488c3644ebc4dbf4f18fb3220e93 (diff) | |
download | mongo-0fff039b24fa1fdf14d940c5de7dbfc90e59d5a6.tar.gz |
SERVER-71315 Decide where to store the Telemetry key
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 63c2ac88dcb..f961ab83de4 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -46,6 +46,8 @@ #include "mongo/db/profile_filter.h" #include "mongo/db/query/getmore_command_gen.h" #include "mongo/db/query/plan_summary_stats.h" +#include "mongo/db/query/telemetry.h" +#include "mongo/db/stats/timer_stats.h" #include "mongo/db/storage/storage_engine_parameters_gen.h" #include "mongo/logv2/log.h" #include "mongo/rpc/metadata/client_metadata.h" @@ -57,7 +59,6 @@ #include "mongo/util/net/socket_utils.h" #include "mongo/util/str.h" #include "mongo/util/system_tick_source.h" -#include <mongo/db/stats/timer_stats.h> #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault @@ -435,6 +436,8 @@ bool CurOp::completeAndLogOperation(OperationContext* opCtx, _debug.executionTime = duration_cast<Microseconds>(elapsedTimeExcludingPauses()); const auto executionTimeMillis = durationCount<Milliseconds>(_debug.executionTime); + telemetry::collectTelemetry(opCtx, CurOp::get(opCtx)->debug()); + if (_debug.isReplOplogGetMore) { oplogGetMoreStats.recordMillis(executionTimeMillis); } |