summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/cluster_client_cursor_impl.cpp
diff options
context:
space:
mode:
authorDavis Haupt <davis.haupt@mongodb.com>2023-05-09 16:21:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-09 20:50:26 +0000
commitb6eab7e7d83b10cef5c57f781c1751b465aade9f (patch)
tree73eb4abb778f4579ed98a012a9d201be6b27965e /src/mongo/s/query/cluster_client_cursor_impl.cpp
parent32f706d8604e3045324584e6191f220df96d896d (diff)
downloadmongo-b6eab7e7d83b10cef5c57f781c1751b465aade9f.tar.gz
SERVER-75512 key telemetry store on hash rather than BSONObj
Diffstat (limited to 'src/mongo/s/query/cluster_client_cursor_impl.cpp')
-rw-r--r--src/mongo/s/query/cluster_client_cursor_impl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_client_cursor_impl.cpp b/src/mongo/s/query/cluster_client_cursor_impl.cpp
index 9cc44be6811..939637d0f32 100644
--- a/src/mongo/s/query/cluster_client_cursor_impl.cpp
+++ b/src/mongo/s/query/cluster_client_cursor_impl.cpp
@@ -75,6 +75,7 @@ ClusterClientCursorImpl::ClusterClientCursorImpl(OperationContext* opCtx,
_lastUseDate(_createdDate),
_queryHash(CurOp::get(opCtx)->debug().queryHash),
_shouldOmitDiagnosticInformation(CurOp::get(opCtx)->debug().shouldOmitDiagnosticInformation),
+ _telemetryStoreKeyHash(CurOp::get(opCtx)->debug().telemetryStoreKeyHash),
_telemetryStoreKey(CurOp::get(opCtx)->debug().telemetryStoreKey),
_telemetryRequestShapifier(std::move(CurOp::get(opCtx)->debug().telemetryRequestShapifier)) {
dassert(!_params.compareWholeSortKeyOnRouter ||
@@ -136,8 +137,9 @@ void ClusterClientCursorImpl::kill(OperationContext* opCtx) {
"Cannot kill a cluster client cursor that has already been killed",
!_hasBeenKilled);
- if (_telemetryStoreKey && opCtx) {
+ if (_telemetryStoreKeyHash && opCtx) {
telemetry::writeTelemetry(opCtx,
+ _telemetryStoreKeyHash,
_telemetryStoreKey,
std::move(_telemetryRequestShapifier),
_metrics.executionTime.value_or(Microseconds{0}).count(),