summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/find_cmd.cpp
diff options
context:
space:
mode:
authorWill Buerger <will.buerger@mongodb.com>2023-05-16 20:32:42 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-17 00:09:49 +0000
commitd646e44b7801a3e5b3230bbae7dcfe05a5ed8707 (patch)
tree2eebf945a3f958e3adddc157523a49deb72cc63d /src/mongo/db/commands/find_cmd.cpp
parent8219766da20351edcda5fe21a18da254b382cd35 (diff)
downloadmongo-d646e44b7801a3e5b3230bbae7dcfe05a5ed8707.tar.gz
SERVER-76427: Rename $telemetry to $queryStats
Co-authored-by: Ted Tuckman <ted.tuckman@mongodb.com>
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r--src/mongo/db/commands/find_cmd.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp
index 90e6fa15ca1..983661fbd15 100644
--- a/src/mongo/db/commands/find_cmd.cpp
+++ b/src/mongo/db/commands/find_cmd.cpp
@@ -55,7 +55,7 @@
#include "mongo/db/query/find_request_shapifier.h"
#include "mongo/db/query/get_executor.h"
#include "mongo/db/query/query_knobs_gen.h"
-#include "mongo/db/query/telemetry.h"
+#include "mongo/db/query/query_stats.h"
#include "mongo/db/repl/replication_coordinator.h"
#include "mongo/db/s/query_analysis_writer.h"
#include "mongo/db/service_context.h"
@@ -561,13 +561,14 @@ public:
cq->setUseCqfIfEligible(true);
if (collection) {
- // Collect telemetry. Exclude queries against collections with encrypted fields.
+ // Collect queryStats. Exclude queries against collections with encrypted fields.
if (!collection.get()->getCollectionOptions().encryptedFieldConfig) {
- telemetry::registerRequest(std::make_unique<telemetry::FindRequestShapifier>(
- cq->getFindCommandRequest(), opCtx),
- collection.get()->ns(),
- opCtx,
- cq->getExpCtx());
+ query_stats::registerRequest(
+ std::make_unique<query_stats::FindRequestShapifier>(
+ cq->getFindCommandRequest(), opCtx),
+ collection.get()->ns(),
+ opCtx,
+ cq->getExpCtx());
}
}
@@ -780,9 +781,9 @@ public:
processFLEFindD(
opCtx, findCommand->getNamespaceOrUUID().nss().value(), findCommand.get());
}
- // Set the telemetryStoreKey to none so telemetry isn't collected when we've done a
- // FLE rewrite.
- CurOp::get(opCtx)->debug().telemetryStoreKeyHash = boost::none;
+ // Set the queryStatsStoreKey to none so queryStats isn't collected when we've done
+ // a FLE rewrite.
+ CurOp::get(opCtx)->debug().queryStatsStoreKeyHash = boost::none;
CurOp::get(opCtx)->debug().shouldOmitDiagnosticInformation = true;
}