-
Notifications
You must be signed in to change notification settings - Fork 99
feat(db): add spans_outbox table schema #1809
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
+2,277
−1
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
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
v2-docs | a18be51 | Jan 09 2026, 03:47 AM |
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jan 6, 2026
2b644cf to
0464fa6
Compare
d98ff1a to
379c7c3
Compare
0464fa6 to
47752e2
Compare
This was referenced Jan 6, 2026
379c7c3 to
94cc04c
Compare
e7c6f63 to
d3f0ae9
Compare
72230a9 to
db31c84
Compare
d3f0ae9 to
6b0bc14
Compare
db31c84 to
f02b009
Compare
6b0bc14 to
aa5650a
Compare
f02b009 to
f3a92e1
Compare
aa5650a to
d77eaee
Compare
f3a92e1 to
7a8dde2
Compare
d77eaee to
3ae9d6d
Compare
e717c79 to
795a24b
Compare
b1088cf to
7654821
Compare
795a24b to
0a64910
Compare
0a64910 to
dca4196
Compare
7654821 to
068c749
Compare
dca4196 to
ab1f5cd
Compare
8b53b30 to
4c8e22b
Compare
1bfbeaa to
a4f0b7e
Compare
4c8e22b to
85abd21
Compare
Collaborator
Merge activity
|
85abd21 to
e33e679
Compare
a4f0b7e to
2010b84
Compare
2010b84 to
a760968
Compare
e33e679 to
fb85ee2
Compare
b005731 to
54d36f0
Compare
fb85ee2 to
bd83d90
Compare
bd83d90 to
cd0ed96
Compare
cd0ed96 to
a18be51
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 implement the Transactional Outbox pattern for reliable span synchronization to ClickHouse.
What changed?
spansOutboxschema with a corresponding table definition that tracks spans to be synced to ClickHouseoutboxStatusEnumto track the sync state of spans (pending, processing, completed, failed)How to test?
vitest cloud/db/schema/spansOutbox.test.tsWhy make this change?
This implements the Transactional Outbox pattern to ensure reliable, eventually consistent data synchronization between PostgreSQL and ClickHouse. The pattern guarantees that spans created in PostgreSQL will eventually be synced to ClickHouse, even in the presence of failures or network issues. This approach provides: