[SERVER-83641] Change CursorResponseBuilder::done to append CursorMetrics metrics when the flag is se Created: 28/Nov/23  Updated: 12/Jan/24  Resolved: 12/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Ryan Berryhill
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-83629 Extend CursorResponse with new metrics Closed
depends on SERVER-83640 Add new field to findCommand, aggrega... Closed
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2023-12-25, Service Arch 2024-01-08, Service Arch 2024-01-22
Participants:

 Description   

The CursorResponseBuilder::done() should append the IDL CursorMetrics if passed a optional CursorMetrics object.

The CursorMetrics will fill its information from CurOp::OpDebug. We could pass an OperationContext to the done() method but I want to avoid CursorResponseBuilder depending on OperationContext.



 Comments   
Comment by Githook User [ 12/Jan/24 ]

Author:

{'name': 'Ryan Berryhill', 'email': 'ryanberryhill@users.noreply.github.com', 'username': 'ryanberryhill'}

Message: SERVER-83641: Include cursor metrics when includeQueryStatsMetrics is true (#17727)

GitOrigin-RevId: e407b2633e67df2b0b55bb4de858e5ea0cb92016
Branch: master
https://github.com/mongodb/mongo/commit/6d30cad3af7dcfdd963100d7d74548ef7ae464f4

Generated at Thu Feb 08 06:52:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.