diff options
Diffstat (limited to 'jstests/libs/telemetry_utils.js')
-rw-r--r-- | jstests/libs/telemetry_utils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/libs/telemetry_utils.js b/jstests/libs/telemetry_utils.js index 11e2d236827..0bb9e90fb58 100644 --- a/jstests/libs/telemetry_utils.js +++ b/jstests/libs/telemetry_utils.js @@ -45,7 +45,7 @@ function getTelemetry(conn) { const result = conn.adminCommand({ aggregate: 1, pipeline: [ - {$telemetry: {}}, + {$queryStats: {}}, // Sort on telemetry key so entries are in a deterministic order. {$sort: {key: 1}}, {$match: {"key.applicationName": kApplicationName}} @@ -62,7 +62,7 @@ function getTelemetryRedacted( hmacKey = BinData(0, "MjM0NTY3ODkxMDExMTIxMzE0MTUxNjE3MTgxOTIwMjE=")) { // Hashed application name is generated using the default hmacKey argument. const kApplicationName = "MongoDB Shell"; - // Filter out agg queries, including $telemetry. + // Filter out agg queries, including $queryStats. const match = { $match: {"key.queryShape.command": "find", "key.applicationName": kApplicationName} }; @@ -70,7 +70,7 @@ function getTelemetryRedacted( const result = conn.adminCommand({ aggregate: 1, pipeline: [ - {$telemetry: {applyHmacToIdentifiers: applyHmacToIdentifiers, hmacKey: hmacKey}}, + {$queryStats: {applyHmacToIdentifiers: applyHmacToIdentifiers, hmacKey: hmacKey}}, match, // Sort on telemetry key so entries are in a deterministic order. {$sort: {key: 1}}, |