Repository navigation
Conversation
Share source-position reads within each metrics collection while preserving per-subscription checkpoints and refreshing on the next collection. Keep custom subclasses independent unless they opt in, and floor gaps at zero when checkpoints advance beyond the observed source position. Add core and provider-key regression coverage plus real SQL Server, PostgreSQL, SQLite, and KurrentDB query/request-count tests.
PR Summary by QodoDeduplicate subscription gap source reads per metrics collection
AI Description
Diagram
High-Level Assessment
Files changed (28)
|
Code Review by Qodo
1.
|
Test Results 48 files ± 0 48 suites ±0 15m 57s ⏱️ +42s Results for commit 7437033. ± Comparison against base commit ed6cfd1. This pull request removes 9 and adds 35 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
|
/review |
|
Code review by qodo was updated up to the latest commit f5cc41f |
|
/review |
|
Code review by qodo was updated up to the latest commit 35ed1b0 |
Apply NoContext() to I/O and checkpoint awaits, including SQLite setup and cleanup, while preserving assertion awaits. Disambiguate PostgreSQL and SQLite task helpers with assembly aliases.
|
/review |
|
Code review by qodo was updated up to the latest commit 7437033 |
|
@alexeyzimarev this is ready for a review. I went through a few stages of fixing qodo suggestions. |
Subscription gap metrics currently read the same source position once per subscription. This change shares that read across subscriptions using the same source during each metrics collection, while preserving individual checkpoints and refreshing the source position on the next collection.
Custom subclasses remain independent unless they opt in. Gaps are clamped to zero when a checkpoint advances beyond the observed source position.
Adds core and provider-key regression tests, plus integration tests verifying query/request counts against SQL Server, PostgreSQL, SQLite, and KurrentDB.
Fixes #614