Add cursor.changeStreams.optime to $currentOp on mongoD

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • QE 2026-05-11, QE 2026-04-27, QE 2026-03-30, QE 2026-04-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Collect the following metrics at cursor level (currentOp) on mongoD:

      • cursor.changeStreams.optime
        • Operation time (cluster time) of the current oplog entry at cursor position.
        • The optime of the latest event that we've sent or the current 'high-watermark'.

       

      An important implementation decision is when to update the metrics, since some of the oplog scanning functionality is done by the classic find-subsystem. A viable option is to do this in the earliest change stream stage of the aggregation pipeline ($_internalChangeStreamOplogMatch).

            Assignee:
            Lyublena Antova
            Reporter:
            Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: