-
Notifications
You must be signed in to change notification settings - Fork 99
feat(db): add functions schema and migration #1623
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
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 Dec 10, 2025
Merged
Merged
6afaafa to
0da1a5d
Compare
0da1a5d to
6af4a16
Compare
0fd64bb to
b0d937e
Compare
6af4a16 to
eca6691
Compare
b0d937e to
df92737
Compare
eca6691 to
be37dd1
Compare
be37dd1 to
154a7a8
Compare
df92737 to
6a7ed64
Compare
154a7a8 to
b142be9
Compare
6a7ed64 to
c70bc7e
Compare
b142be9 to
379c74a
Compare
c70bc7e to
8e863c7
Compare
379c74a to
48b4b12
Compare
48b4b12 to
5f15f42
Compare
5f15f42 to
965b130
Compare
965b130 to
fce5987
Compare
Collaborator
Merge activity
|
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 database schema for annotations and functions to support span annotations and function registry features.
What changed?
Created a new migration file (
0007_dark_wendigo.sql) that adds two new tables:annotations: Stores user-created annotations for spans with fields for labels, reasoning, and associated metadatafunctions: Stores function definitions with versioning support, including code, signature, dependencies, and metadataAdded TypeScript schema definition for the functions table with:
Added appropriate foreign key constraints and indexes for both tables
How to test?
Why make this change?
This change enables two key features:
Both features enhance the observability platform by adding context to traces and supporting function management capabilities.