Skip to content

feat(spans): Infer descriptions via sentry-conventions#6093

Merged
loewenheim merged 14 commits into
masterfrom
sebastian/description-conventions
Jun 22, 2026
Merged

feat(spans): Infer descriptions via sentry-conventions#6093
loewenheim merged 14 commits into
masterfrom
sebastian/description-conventions

Conversation

@loewenheim

@loewenheim loewenheim commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

This implements description inference based on sentry-conventions, paralleling the existing name inference logic. The conventions logic wholly subsumes the db and http special cases that were previously implemented in this repo.

Closes INGEST-956.

@loewenheim loewenheim requested a review from a team as a code owner June 15, 2026 15:55
@loewenheim loewenheim self-assigned this Jun 15, 2026
This reverts commit 2ccf16a.
@loewenheim loewenheim force-pushed the sebastian/description-conventions branch from a041cdd to 552c867 Compare June 15, 2026 15:57
Comment thread relay-spans/src/description.rs Outdated
@linear-code

linear-code Bot commented Jun 15, 2026

Copy link
Copy Markdown

INGEST-956

}

None
let op = attributes.get_value(SENTRY__OP)?.as_str()?;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This means we cannot infer a description with a missing op, is that enough?

I thought we're gonna have rules which may not require an op to be present.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That is at least not how it works now. The schema in conventions specifies that each rule needs to apply to a nonempty list of ops. But we can change that if we don't want to assume the presence of an op for V2 spans.

Comment thread relay-conventions/build/description.rs
Comment thread relay-spans/src/description.rs
Comment thread relay-spans/src/description.rs
Comment thread relay-conventions/build/description.rs

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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 1 potential issue.

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 f6db5bf. Configure here.

Comment thread relay-conventions/build/description.rs Outdated
@loewenheim loewenheim enabled auto-merge June 22, 2026 08:09
@loewenheim loewenheim added this pull request to the merge queue Jun 22, 2026
Merged via the queue into master with commit 1bdefc8 Jun 22, 2026
34 checks passed
@loewenheim loewenheim deleted the sebastian/description-conventions branch June 22, 2026 08:43
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