Skip to content

feat: Extend performance profiles to V2 spans#115203

Merged
loewenheim merged 3 commits into
masterfrom
sebastian/performance-profile-conditions
May 11, 2026
Merged

feat: Extend performance profiles to V2 spans#115203
loewenheim merged 3 commits into
masterfrom
sebastian/performance-profile-conditions

Conversation

@loewenheim
Copy link
Copy Markdown
Contributor

This makes performance profiles able to also match V2 spans by turning the browser name conditions into disjunctions checking two different fields.

This is required to enable performance score calculation for V2 spans.

This is a companion PR to getsentry/relay#5947. That PR contains some test cases showing that profiles with these expanded conditions work for V2 spans.

Closes INGEST-895.

This makes performance profiles able to also match V2 spans by turning
the browser name conditions into disjunctions checking two different
fields.

This is required to enable performance score calculation for V2 spans.
@loewenheim loewenheim requested a review from a team as a code owner May 8, 2026 17:52
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 8, 2026

INGEST-895

@loewenheim loewenheim self-assigned this May 8, 2026
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 8, 2026
Copy link
Copy Markdown
Contributor

@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 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 c624d67. Configure here.

Comment thread src/sentry/relay/config/__init__.py Outdated
Comment thread src/sentry/relay/config/__init__.py Outdated
},
],
},
"condition": _browser_name_one_of("Chrome", "Google Chrome"),
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.

This case is the only reason the function takes multiple arguments to begin with.

@loewenheim loewenheim merged commit 058c85f into master May 11, 2026
59 checks passed
@loewenheim loewenheim deleted the sebastian/performance-profile-conditions branch May 11, 2026 07:33
dashed pushed a commit that referenced this pull request May 11, 2026
This makes performance profiles able to also match V2 spans by turning
the browser name conditions into disjunctions checking two different
fields.

This is required to enable performance score calculation for V2 spans.

This is a companion PR to getsentry/relay#5947.
That PR contains some test cases showing that profiles with these
expanded conditions work for V2 spans.

Closes INGEST-895.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants