Add an expression to inspect the resume token of a change stream

XMLWordPrintableJSON

    • Query Execution
    • QE 2024-10-28, QE 2024-11-11
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      For diagnostic or scripting purposes, it might be useful to inspect the values of the different pieces of a resume token:

      • The collection's UUID
      • The timestamp of the change
      • The document key for the changed document

      Cases this has come up include:

      • Writing performance tests for change streams, wanting to inspect the cluster time of each change.
      • Debugging a test failure during development on SERVER-31447.

      A good way to expose this information might be through an aggregation expression.

            Assignee:
            Katya Kamenieva
            Reporter:
            Charlie Swanson
            Votes:
            5 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              Resolved: