diff options
author | liubov.molchanova <liubov.molchanova@mongodb.com> | 2023-05-17 08:16:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 10:20:42 +0000 |
commit | 87160f876c6fb94f5d03062b2caee57539ec5d8e (patch) | |
tree | b78d9ca9e853a236e0a2f6432a6ac02dc50119cd /src/mongo/db/query/request_shapifier.h | |
parent | 1c390a0c50104a04cbd8ecbefb99eaf22e1bc914 (diff) | |
download | mongo-87160f876c6fb94f5d03062b2caee57539ec5d8e.tar.gz |
Revert "SERVER-76427: Rename $telemetry to $queryStats"
This reverts commit d646e44b7801a3e5b3230bbae7dcfe05a5ed8707.
Diffstat (limited to 'src/mongo/db/query/request_shapifier.h')
-rw-r--r-- | src/mongo/db/query/request_shapifier.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mongo/db/query/request_shapifier.h b/src/mongo/db/query/request_shapifier.h index 37004197fd0..1bae8f913f9 100644 --- a/src/mongo/db/query/request_shapifier.h +++ b/src/mongo/db/query/request_shapifier.h @@ -34,27 +34,27 @@ #include "mongo/db/query/serialization_options.h" #include "mongo/rpc/metadata/client_metadata.h" -namespace mongo::query_stats { +namespace mongo::telemetry { /** - * An abstract base class to handle query shapification for queryStats. Each request type should - * define its own shapification strategy in its implementation of makeQueryStatsKey(), and then a - * request should be registered with queryStats via query_stats::registerRequest(RequestShapifier). + * An abstract base class to handle query shapification for telemetry. Each request type should + * define its own shapification strategy in its implementation of makeTelemetryKey(), and then a + * request should be registered with telemetry via telemetry::registerRequest(RequestShapifier). */ class RequestShapifier { public: virtual ~RequestShapifier() = default; /** - * makeQueryStatsKey generates the telemetry key representative of the specific request's + * makeTelemetryKey generates the telemetry key representative of the specific request's * payload. If there exists an ExpressionContext set up to parse and evaluate the request, - * makeQueryStatsKey should be called with that ExpressionContext. If not, you can call the + * makeTelemetryKey should be called with that ExpressionContext. If not, you can call the * overload that accepts the OperationContext and will construct a minimally-acceptable * ExpressionContext for the sake of generating the key. */ - virtual BSONObj makeQueryStatsKey(const SerializationOptions& opts, - OperationContext* opCtx) const = 0; - virtual BSONObj makeQueryStatsKey( + virtual BSONObj makeTelemetryKey(const SerializationOptions& opts, + OperationContext* opCtx) const = 0; + virtual BSONObj makeTelemetryKey( const SerializationOptions& opts, const boost::intrusive_ptr<ExpressionContext>& expCtx) const = 0; @@ -79,4 +79,4 @@ protected: BSONObj _commentObj; boost::optional<BSONElement> _comment = boost::none; }; -} // namespace mongo::query_stats +} // namespace mongo::telemetry |