Extend QueryStatsEntry with new metrics.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • Fully Compatible
    • Security 2023-12-11, Security 2023-12-25
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The new metrics to add to QueryStatsEntry:

          AggregatedMetric keysExamined;
          AggregatedMetric docsExamined;
          
          struct AggregatedBool {
              uint64_t trueCount;
              uint64_t falseCount;
          };
          AggregatedBool hasSortStage;
          AggregatedBool usedDisk;
          AggregatedBool fromMultiPlanner;
          AggregatedBool fromPlanCache;
      

      QueryStatsEntry::toBSON will check the feature flag to avoid extra information appearing in $queryStats. This can be done by taking a boolean rather then depending on the feature flag code itself.

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: