Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-16736

Investigate changes in SERVER-87032: Query Stats appear not to be collected for whole-db and whole-cluster change streams

      Original Downstream Change Summary

      This change affects how query stats works with change streams. It operates differently than with normal queries that end. We will update metrics for change streams on the creation of the cursor, every getMore and on the cursor close. Something notable is that FirstResponseExecMicros and TotalExecMicros will match for change stream queries.

      Description of Linked Ticket

      I was trying to test it out and I could only get a single-collection change stream to show up. Neither of these added any entries to the query stats store:

      db.getMongo().watch()
      db.watch()
      

      But this one did add an entry:

      db.foo.watch()
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              2 weeks, 5 days ago