summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorDavis Haupt <davis.haupt@mongodb.com>2023-05-15 13:22:59 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-15 15:24:46 +0000
commit572a0c3987787a66f0192009b30651b8bae822ff (patch)
treea9613a37fccc420c88cd113f0ad419824ddf25df /src/mongo/db/clientcursor.h
parent8896b5ba5a84d1b6b63953b9009ca16eda69d3c6 (diff)
downloadmongo-572a0c3987787a66f0192009b30651b8bae822ff.tar.gz
SERVER-75512 key telemetry store on hash rather than BSONObj
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index 68c0a48e260..9e7d35ade9a 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -447,8 +447,9 @@ private:
boost::optional<uint32_t> _planCacheKey;
boost::optional<uint32_t> _queryHash;
- // The shape of the original query serialized with readConcern, application name, and namespace.
// If boost::none, telemetry should not be collected for this cursor.
+ boost::optional<std::size_t> _telemetryStoreKeyHash;
+ // TODO: SERVER-73152 remove telemetryStoreKey when RequestShapifier is used for agg.
boost::optional<BSONObj> _telemetryStoreKey;
// Metrics that are accumulated over the lifetime of the cursor, incremented with each getMore.
// Useful for diagnostics like telemetry.