diff options
author | Maddie Zechar <mez2113@columbia.edu> | 2023-01-23 18:58:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-23 21:03:27 +0000 |
commit | 2091bc8a02bc884e8df85fb02f706aac18b6278e (patch) | |
tree | df16439e69ad6730b4208c22d4a89555ea98e374 /src/mongo/db/query/telemetry.h | |
parent | dc6bdd52af8ea92f8ddd31b8b4849ff93399f3c9 (diff) | |
download | mongo-2091bc8a02bc884e8df85fb02f706aac18b6278e.tar.gz |
SERVER-71484 Store telemetry key on OpDebug
Diffstat (limited to 'src/mongo/db/query/telemetry.h')
-rw-r--r-- | src/mongo/db/query/telemetry.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/query/telemetry.h b/src/mongo/db/query/telemetry.h index 7f6dd31da32..c8fb6aec5d4 100644 --- a/src/mongo/db/query/telemetry.h +++ b/src/mongo/db/query/telemetry.h @@ -191,9 +191,13 @@ void registerFindRequest(const FindCommandRequest& request, const NamespaceString& collection, OperationContext* opCtx); -void registerGetMoreRequest(OperationContext* opCtx, const PlanExplainer& planExplainer); +void registerGetMoreRequest(OperationContext* opCtx); -void recordExecution(OperationContext* opCtx, const OpDebug& opDebug, bool isFle); +// recordExecution is called between registering the query and collecting metrics post execution. +// Its purpose is to track the number of times a given query shape has been ran. The execution count +// is incremented outside of registering the command because the originating command could be an +// explain request and therefore the query is not actually executed. +void recordExecution(OperationContext* opCtx, bool isFle); /** * Collect telemetry for the operation identified by `key`. The `isExec` flag should be set if it's |