-
Notifications
You must be signed in to change notification settings - Fork 99
feat(db): write to outbox on span insertion #1810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+90
−0
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
This was referenced Jan 6, 2026
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jan 6, 2026
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
v2-docs | fdc0d42 | Jan 09 2026, 03:52 AM |
2b644cf to
0464fa6
Compare
6abb2ce to
0b11879
Compare
0464fa6 to
47752e2
Compare
This was referenced Jan 6, 2026
0b11879 to
dad5c76
Compare
b5d6d9c to
e7c6f63
Compare
dad5c76 to
c126a39
Compare
e7c6f63 to
d3f0ae9
Compare
c126a39 to
1d8de59
Compare
d3f0ae9 to
6b0bc14
Compare
1d8de59 to
d9ae300
Compare
6b0bc14 to
aa5650a
Compare
4c878c7 to
e68492f
Compare
aa5650a to
d77eaee
Compare
e68492f to
754e297
Compare
d77eaee to
3ae9d6d
Compare
9825e75 to
b498dab
Compare
b1088cf to
7654821
Compare
b498dab to
5866958
Compare
5866958 to
0084b89
Compare
068c749 to
8b53b30
Compare
2fbd108 to
f2d94a8
Compare
8b53b30 to
4c8e22b
Compare
f2d94a8 to
e0e4fcc
Compare
4c8e22b to
85abd21
Compare
Collaborator
Merge activity
|
e0e4fcc to
f9cdc37
Compare
85abd21 to
e33e679
Compare
e33e679 to
fb85ee2
Compare
f9cdc37 to
468bbb7
Compare
fb85ee2 to
bd83d90
Compare
468bbb7 to
f6c812d
Compare
cd0ed96 to
a18be51
Compare
f6c812d to
41d2ebc
Compare
41d2ebc to
345841f
Compare
345841f to
fdc0d42
Compare
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.

TL;DR
Added a spans outbox table to track spans that need to be synced to ClickHouse.
What changed?
0001_shiny_donald_blake.sql) that adds:outbox_statuswith values: 'pending', 'processing', 'completed', 'failed'spans_outboxto track spans that need processingspansOutbox.test.tsfile fromschema/to the parent directoryHow to test?
spans_outboxtableWhy make this change?
This implements an outbox pattern for reliable data synchronization between the main database and ClickHouse. When spans are inserted, they're also recorded in the outbox table, allowing a separate process to reliably sync them to ClickHouse even if the initial sync attempt fails. This pattern ensures data consistency across systems and provides retry capabilities through the status tracking and retry count fields.