diff options
author | Will Buerger <will.buerger@mongodb.com> | 2023-05-16 20:32:42 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 00:09:49 +0000 |
commit | d646e44b7801a3e5b3230bbae7dcfe05a5ed8707 (patch) | |
tree | 2eebf945a3f958e3adddc157523a49deb72cc63d /src/mongo/db/query/request_shapifier.h | |
parent | 8219766da20351edcda5fe21a18da254b382cd35 (diff) | |
download | mongo-d646e44b7801a3e5b3230bbae7dcfe05a5ed8707.tar.gz |
SERVER-76427: Rename $telemetry to $queryStats
Co-authored-by: Ted Tuckman <ted.tuckman@mongodb.com>
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 1bae8f913f9..37004197fd0 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::telemetry { +namespace mongo::query_stats { /** - * 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). + * 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). */ class RequestShapifier { public: virtual ~RequestShapifier() = default; /** - * makeTelemetryKey generates the telemetry key representative of the specific request's + * makeQueryStatsKey generates the telemetry key representative of the specific request's * payload. If there exists an ExpressionContext set up to parse and evaluate the request, - * makeTelemetryKey should be called with that ExpressionContext. If not, you can call the + * makeQueryStatsKey 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 makeTelemetryKey(const SerializationOptions& opts, - OperationContext* opCtx) const = 0; - virtual BSONObj makeTelemetryKey( + virtual BSONObj makeQueryStatsKey(const SerializationOptions& opts, + OperationContext* opCtx) const = 0; + virtual BSONObj makeQueryStatsKey( 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::telemetry +} // namespace mongo::query_stats |