Skip to content

ref(transactions): Send extracted spans and profiles directly to store#6029

Merged
Dav1dde merged 4 commits into
masterfrom
dav1d/store-spans-from-transactions
Jun 1, 2026
Merged

ref(transactions): Send extracted spans and profiles directly to store#6029
Dav1dde merged 4 commits into
masterfrom
dav1d/store-spans-from-transactions

Conversation

@Dav1dde
Copy link
Copy Markdown
Member

@Dav1dde Dav1dde commented May 29, 2026

Instead of bolting extracted_spans onto the transaction, it is now modeled as a separate type with its own workflow and rate limiting. This simplifies control flow a bit, but it does make metric extraction slightly trickier (see comments in code).

This solves a longstanding issue where we serialized spans just to de-serialize them again in the store. This is also the first step to no longer sending envelopes to the store.

Also includes some tiny refactors moving files/structs around to make the code base easier to navigate.

Refs: INGEST-644

@Dav1dde Dav1dde requested a review from a team as a code owner May 29, 2026 10:43
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 29, 2026

INGEST-644

@Dav1dde Dav1dde changed the title ref(transactions): Send extracted spans directly to store ref(transactions): Send extracted spans and profiles directly to store May 29, 2026
@Dav1dde Dav1dde force-pushed the dav1d/store-spans-from-transactions branch 3 times, most recently from 5aff409 to 3b09a51 Compare May 29, 2026 10:51
Comment thread relay-server/src/processing/profiles/mod.rs
cursor[bot]

This comment was marked as outdated.

@Dav1dde Dav1dde force-pushed the dav1d/store-spans-from-transactions branch from 3b09a51 to 1b9a83d Compare May 29, 2026 11:07
@Dav1dde Dav1dde force-pushed the dav1d/store-spans-from-transactions branch from 1b9a83d to eaacc0f Compare May 29, 2026 11:09
Comment thread relay-server/src/processing/transactions/types/output.rs
Comment thread relay-server/src/processing/transactions/types/serialized.rs
Comment thread relay-server/src/processing/transactions/process.rs Outdated
@Dav1dde Dav1dde enabled auto-merge June 1, 2026 12:44
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 05885ab. Configure here.

Comment thread relay-server/src/processing/transactions/spans.rs
Comment thread relay-server/src/processing/transactions/types/output.rs
@Dav1dde Dav1dde added this pull request to the merge queue Jun 1, 2026
Merged via the queue into master with commit 1e2550d Jun 1, 2026
33 checks passed
@Dav1dde Dav1dde deleted the dav1d/store-spans-from-transactions branch June 1, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants