Add replay connector, shared capture scripts, and replay throughput improvements#32
Merged
jillesvangurp merged 7 commits intomainfrom Apr 2, 2026
Merged
Add replay connector, shared capture scripts, and replay throughput improvements#32jillesvangurp merged 7 commits intomainfrom
jillesvangurp merged 7 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the replay connector and shared hub-feed logging tools, and it now also carries the hub-side performance work needed to replay dense traces reliably.
What Changed
connectors/replayas a diagnostic connector that replays loggedlocation_updatesNDJSON back into the hub.--acceleration-factor, and synthetic interpolation via--interpolation-rate-hz.--batch-window-msand--max-batch-sizeto reduce WebSocket overhead.scripts/project and removes connector-local duplicates.Why
The repository needed a connector-agnostic way to capture and replay traces for diagnostics and regression testing, and dense replay traces exposed that the hub was doing too much synchronous work on the ingest path.
Replay Verification
Using the same captured OpenSky trace replayed with
--interpolation-rate-hz 10.0:13,192256observed location items before the perf work8,639observed location items13,192observed location items126Validation
uv lock --project connectors/replayuv lock --project scriptspython3 -m py_compile scripts/*.py connectors/replay/*.pyjust bootstrapjust generatejust check