Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Oct 28, 2025

Currently we compute change stream speed by looking at the number of events received in the current generation. This can produce inaccurate results when generations are short.

This changeset switches that rate computation to be tracked independently of the generation.

Logging and documentation are also revised to be more helpful regarding change stream lag.

Copy link
Collaborator

@ajayvijayakumar123 ajayvijayakumar123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % a test suggestion!

@FGasper FGasper merged commit 564bc64 into mongodb-labs:main Oct 30, 2025
99 checks passed
@FGasper FGasper deleted the felipe_changestream_stats_history branch October 30, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants