diff options
author | Will Buerger <will.buerger@mongodb.com> | 2023-05-17 11:49:47 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 12:58:52 +0000 |
commit | ae65ecae5514adc99d60b7396137a1acf2b44335 (patch) | |
tree | 24169f9a640321bfbbec649e869fe51b273b35e3 /src/mongo/s/query/cluster_aggregation_planner.cpp | |
parent | 1b4a551a6b8c85611e26857217ce1a1e1363e716 (diff) | |
download | mongo-ae65ecae5514adc99d60b7396137a1acf2b44335.tar.gz |
SERVER-76427 Rename $telemetry to $queryStats
Diffstat (limited to 'src/mongo/s/query/cluster_aggregation_planner.cpp')
-rw-r--r-- | src/mongo/s/query/cluster_aggregation_planner.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/s/query/cluster_aggregation_planner.cpp b/src/mongo/s/query/cluster_aggregation_planner.cpp index 5aa643c0a85..8f2c6fcdb19 100644 --- a/src/mongo/s/query/cluster_aggregation_planner.cpp +++ b/src/mongo/s/query/cluster_aggregation_planner.cpp @@ -360,16 +360,16 @@ BSONObj establishMergingMongosCursor(OperationContext* opCtx, int nShards = ccc->getNumRemotes(); auto&& opDebug = CurOp::get(opCtx)->debug(); - // Fill out the aggregation metrics in CurOp, and record telemetry metrics, before detaching the - // cursor from its opCtx. + // Fill out the aggregation metrics in CurOp, and record queryStats metrics, before detaching + // the cursor from its opCtx. opDebug.nShards = std::max(opDebug.nShards, nShards); opDebug.cursorExhausted = exhausted; opDebug.additiveMetrics.nBatches = 1; CurOp::get(opCtx)->setEndOfOpMetrics(responseBuilder.numDocs()); if (exhausted) { - collectTelemetryMongos(opCtx, ccc->getRequestShapifier()); + collectQueryStatsMongos(opCtx, ccc->getRequestShapifier()); } else { - collectTelemetryMongos(opCtx, ccc); + collectQueryStatsMongos(opCtx, ccc); } ccc->detachFromOperationContext(); |