-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Integration
Telemetry key is currently represented as a BSONObj. This refactor would create a new struct type to represent the key, which itself would contain an object of another new struct type to represent the query shape, which itself would contain BSONObj pointers representing the shapified input query.
This ticket should seek to remove the raw command BSON obj from being stored on TelemetryMetrics and instead the TelemetryKey struct should hold a std::variant<FindCommandRequest, AggregateCommandRequest, CountRequest...>. This way, we will not need to reparse BSON into a FindCommandRequest as we currently do in redactKey().
IDL may prove very useful for parsing and creating the telemetry key struct or the query shape struct and it may be wise to start this ticket after SERVER-75138 has been merged.
- depends on
-
SERVER-73152 Literal and field name redaction for aggregate command
- Closed
-
SERVER-76329 Use representative query shape in telemetry store (find command)
- Closed
-
SERVER-76143 Add missing fields to telemetry key
- Closed
- duplicates
-
SERVER-76330 Use representative query shape in query stats store (aggregate command)
- Closed
-
SERVER-76307 Move timeseries-related classes/functions into mongo::timeseries namespace
- Closed