Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-76145

Refactor telemetry key

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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.

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            maddie.zechar@mongodb.com Maddie Zechar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: