summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/aggregate_request_shapifier.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/pipeline/aggregate_request_shapifier.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/pipeline/aggregate_request_shapifier.cpp')
-rw-r--r--src/mongo/db/pipeline/aggregate_request_shapifier.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/pipeline/aggregate_request_shapifier.cpp b/src/mongo/db/pipeline/aggregate_request_shapifier.cpp
index 40ed6c2ce79..485b97e2c22 100644
--- a/src/mongo/db/pipeline/aggregate_request_shapifier.cpp
+++ b/src/mongo/db/pipeline/aggregate_request_shapifier.cpp
@@ -31,20 +31,20 @@
#include "mongo/db/query/query_shape.h"
-namespace mongo::telemetry {
+namespace mongo::query_stats {
-BSONObj AggregateRequestShapifier::makeTelemetryKey(const SerializationOptions& opts,
- OperationContext* opCtx) const {
+BSONObj AggregateRequestShapifier::makeQueryStatsKey(const SerializationOptions& opts,
+ OperationContext* opCtx) const {
// TODO SERVER-76087 We will likely want to set a flag here to stop $search from calling out
// to mongot.
auto expCtx = make_intrusive<ExpressionContext>(opCtx, nullptr, _request.getNamespace());
expCtx->variables.setDefaultRuntimeConstants(opCtx);
expCtx->maxFeatureCompatibilityVersion = boost::none; // Ensure all features are allowed.
expCtx->stopExpressionCounters();
- return makeTelemetryKey(opts, expCtx);
+ return makeQueryStatsKey(opts, expCtx);
}
-BSONObj AggregateRequestShapifier::makeTelemetryKey(
+BSONObj AggregateRequestShapifier::makeQueryStatsKey(
const SerializationOptions& opts, const boost::intrusive_ptr<ExpressionContext>& expCtx) const {
BSONObjBuilder bob;
@@ -84,4 +84,4 @@ BSONObj AggregateRequestShapifier::makeTelemetryKey(
return bob.obj();
}
-} // namespace mongo::telemetry
+} // namespace mongo::query_stats