Skip to content

ref: bump sentry-conventions to 0.35.0 - #8737

Merged
ElioDiNino merged 1 commit into
masterfrom
bot/bump-version/sentry-conventions/0.35.0
Nov 20, 2026
Merged

ElioDiNino merged 1 commit into
masterfrom
bot/bump-version/sentry-conventions/0.35.0

Conversation

@getsentry-bot

Copy link
Copy Markdown
Contributor

Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>

Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
@getsentry-bot
getsentry-bot requested a review from a team as a code owner November 20, 2026 16:12
@ElioDiNino
ElioDiNino merged commit 1eba3ca into master Nov 20, 2026
74 checks passed
@ElioDiNino
ElioDiNino deleted the bot/bump-version/sentry-conventions/0.35.0 branch November 20, 2026 17:40
@sentry-snuba-fast-revert-bot

Copy link
Copy Markdown
Contributor

PR reverted: f820920

sentry-snuba-fast-revert-bot Bot added a commit that referenced this pull request Nov 20, 2026
This reverts commit 1eba3ca.

Co-authored-by: ElioDiNino\n<[email protected]>
MeredithAnya pushed a commit that referenced this pull request Nov 24, 2026
Re-lands the sentry-conventions 0.35.0 bump (#8737,
reverted in f8209206b) together with the fix for the
regression it caused.

**What broke**

0.35.0 adds `sentry.device.class` as an alias of `device.class`
(getsentry/sentry-conventions#804), so snuba now reads `device.class` as
a coalesced value:

```
multiIf(has(mapKeys(attributes_string), 'device.class'), attributes_string['device.class'],
        attributes_string['sentry.device.class'])
```

Sentry sends `device.class` as a virtual column mapped from
`sentry.device.class`. `_apply_virtual_columns` transforms expressions
bottom-up and only rewrites reads keyed by `to_column_name`. So the
value map landed inside one branch of the `multiIf`, and the fallback
branch returned the raw `sentry.device.class` value, or NULL when
neither key is set. Spans without a device class stopped resolving to
`Unknown` in sentry's spans queries, which broke sentry's backend tests
and blocked backend deploys.

**Fix**

A virtual column replaces every read of its name. Before applying the
value map, `_apply_virtual_columns` now collapses coalesced reads of
`to_column_name` back to a single-key read. This covers the
SELECT/group-by form (`attributes_string[...]`), the filter form
(`arrayElement`), and the OR'd `has(mapKeys(...))` existence guard. It
matches the exact expressions built by `coalesced_attribute_names`,
`first_present_value`, and `key_existence_conditions`. Coalescing of the
backing `from_column_name` is unchanged.

**Rollout note**

Merging puts 0.35.0 back into the `snuba:nightly` image that sentry's
backend CI uses, so the sentry test job here needs to be green before
this merges.

<!-- junior-request-attribution:start -->
via @ElioDiNino.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AD0BU5E23PJA%3A1795228837.231619 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/slack%3AD0BU5E23PJA%3A1795228837.231619)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0BU5E23PJA%3A1795228837.231619/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Elio Di Nino <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants