-
Notifications
You must be signed in to change notification settings - Fork 99
feat(db): add migration for traces and spans tables #1605
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
feat(db): add migration for traces and spans tables #1605
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
v2-docs | f2e8bb0 | Jan 05 2026, 02:16 PM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The migration files here are wrong. I believe v2 base is at 0011 right now.
Also, this is missing the journal update as well? Did you clear the migrations and run bun run db:generate?
9cb1336 to
4e114b6
Compare
2aa98fa to
44fc22e
Compare
4e114b6 to
67a043e
Compare
10b80a6 to
f3a1efe
Compare
willbakst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve merge conflicts
f3a1efe to
df030e4
Compare
07a7264 to
e336017
Compare
e336017 to
f2e8bb0
Compare

TL;DR
Added database schema for traces and spans to support distributed tracing functionality.
What changed?
Created a new
tracestable to store trace information with fields for:Created a new
spanstable to store span data with fields for:Added appropriate foreign key constraints to maintain data integrity
Created indexes to optimize query performance for common access patterns
How to test?
Why make this change?
This database schema is the foundation for implementing distributed tracing capabilities in our application. The tables will store OpenTelemetry-compatible trace and span data, allowing us to: