-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
DB Integration & Observability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Collect shard-side query stats metrics for bulkWrite ops on mongos, building on the per-op registration from SERVER-137436.
Scope
- Add an includeQueryStatsMetricsForOpIndex field to bulkWrite update/delete/insert ops, and a per-op queryStatsMetrics field to the bulkWrite reply, mirroring the update/delete/insert command IDL in write_ops.idl.
- On mongos, set includeQueryStatsMetricsForOpIndex on shard-bound bulkWrite ops that were registered for query stats, and aggregate the returned per-op metrics into the mongos entry for that op.
Suggested split
- IDL: add the request and reply fields (no behavior change).
- mongos: request and aggregate the metrics.
- related to
-
SERVER-137438 Attach metrics to bulkWrite responses on shards
-
- Backlog
-
-
SERVER-137436 Shapify bulkWrite ops on mongos
-
- Investigating
-