From d646e44b7801a3e5b3230bbae7dcfe05a5ed8707 Mon Sep 17 00:00:00 2001 From: Will Buerger Date: Tue, 16 May 2023 20:32:42 +0000 Subject: SERVER-76427: Rename $telemetry to $queryStats Co-authored-by: Ted Tuckman --- src/mongo/db/query/find_request_shapifier.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mongo/db/query/find_request_shapifier.cpp') diff --git a/src/mongo/db/query/find_request_shapifier.cpp b/src/mongo/db/query/find_request_shapifier.cpp index 8002a152a13..83560f3acdb 100644 --- a/src/mongo/db/query/find_request_shapifier.cpp +++ b/src/mongo/db/query/find_request_shapifier.cpp @@ -34,7 +34,7 @@ #include "mongo/db/query/query_request_helper.h" #include "mongo/db/query/query_shape.h" -namespace mongo::telemetry { +namespace mongo::query_stats { void addNonShapeObjCmdLiterals(BSONObjBuilder* bob, const FindCommandRequest& findCommand, @@ -58,8 +58,8 @@ void addNonShapeObjCmdLiterals(BSONObjBuilder* bob, } -BSONObj FindRequestShapifier::makeTelemetryKey(const SerializationOptions& opts, - OperationContext* opCtx) const { +BSONObj FindRequestShapifier::makeQueryStatsKey(const SerializationOptions& opts, + OperationContext* opCtx) const { auto expCtx = make_intrusive( opCtx, _request, nullptr /* collator doesn't matter here.*/, false /* mayDbProfile */); expCtx->maxFeatureCompatibilityVersion = boost::none; // Ensure all features are allowed. @@ -67,10 +67,10 @@ BSONObj FindRequestShapifier::makeTelemetryKey(const SerializationOptions& opts, // expressions/stages, so it's a side effect tied to parsing. We must stop expression counters // before re-parsing to avoid adding to the counters more than once per a given query. expCtx->stopExpressionCounters(); - return makeTelemetryKey(opts, expCtx); + return makeQueryStatsKey(opts, expCtx); } -BSONObj FindRequestShapifier::makeTelemetryKey( +BSONObj FindRequestShapifier::makeQueryStatsKey( const SerializationOptions& opts, const boost::intrusive_ptr& expCtx) const { BSONObjBuilder bob; @@ -102,4 +102,4 @@ BSONObj FindRequestShapifier::makeTelemetryKey( return bob.obj(); } -} // namespace mongo::telemetry +} // namespace mongo::query_stats -- cgit v1.2.1