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

Refactor telemetry key

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Integration

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            maddie.zechar@mongodb.com Maddie Zechar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: