Skip to content

ref: bump sentry-conventions to 0.5.0#7884

Merged
buenaflor merged 2 commits intomasterfrom
gibuenaf/bump-sentry-conventions-0.5.0
Apr 24, 2026
Merged

ref: bump sentry-conventions to 0.5.0#7884
buenaflor merged 2 commits intomasterfrom
gibuenaf/bump-sentry-conventions-0.5.0

Conversation

@buenaflor
Copy link
Copy Markdown
Contributor

@buenaflor buenaflor commented Apr 20, 2026

Bumps `sentry-conventions` from 0.3.0 to 0.5.0 (latest), via `uv lock --upgrade-package sentry-conventions`.

Changelog: https://github.com/getsentry/sentry-conventions/blob/main/CHANGELOG.md

Made with Cursor

Copilot AI review requested due to automatic review settings April 20, 2026 14:28
@buenaflor buenaflor requested a review from a team as a code owner April 20, 2026 14:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates sentry-conventions to the latest release to pick up newer attribute metadata/deprecation mappings while keeping Snuba’s existing API usage unchanged.

Changes:

  • Bump sentry-conventions dependency constraint from >=0.3.0 to >=0.5.0.
  • Regenerate uv.lock to pin sentry-conventions==0.5.0 and update the locked dependency metadata.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
uv.lock Updates the locked sentry-conventions package version, wheel URL, and hash to 0.5.0, plus the top-level requires-dist constraint.
pyproject.toml Raises the declared runtime dependency constraint for sentry-conventions to >=0.5.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@buenaflor
Copy link
Copy Markdown
Contributor Author

Test fails are related to #7886

buenaflor added a commit that referenced this pull request Apr 24, 2026
Two related fixes for coalesced attribute handling:

**1. Skip deprecations without a replacement when building coalesce
map**

The `_build_deprecated_attributes` loop assumed every deprecation has a
`replacement`, but `replacement` is optional. For deprecations without a
successor, `replacement=None` created a `None` key in
`ATTRIBUTES_TO_COALESCE` and grouped unrelated deprecated attributes
together. Now only deprecated attributes that define a replacement are
included.

Refs #7884

**2. Handle coalesced attributes in `exists_filter`**

`exists_filter` (`has:` syntax) on coalesced attributes only checked the
canonical key, missing v1 spans stored under deprecated keys. In
`get_field_existence_expression`, when `attribute_key_to_expression`
returns a `coalesce(...)` for attributes with deprecated mappings, the
helper `get_subscriptable_field` extracted only the first parameter
(canonical key) and generated `mapContains` for just that key — all
deprecated alternatives were silently ignored.

Added a handler that detects `coalesce` function calls and recursively
generates per-parameter existence checks combined with OR.

Fixes #7879

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@buenaflor buenaflor merged commit 68aaf4a into master Apr 24, 2026
90 of 97 checks passed
@buenaflor buenaflor deleted the gibuenaf/bump-sentry-conventions-0.5.0 branch April 24, 2026 10:42
buenaflor added a commit to getsentry/sentry that referenced this pull request Apr 28, 2026
Bumps `sentry-conventions` from `>=0.3.0` to `>=0.5.0` and refreshes the
generated
`src/sentry/search/eap/spans/sentry_conventions/deprecated_attributes.json`
from the matching upstream tag
([getsentry/sentry-conventions@0.5.0](https://github.com/getsentry/sentry-conventions/releases/tag/0.5.0)).

Backend updates:
- Preserve Sentry’s legacy `sentry.profile_id` transaction profile
attribute, since `0.5.0` now defines `sentry.profiler_id` for continuous
profiling.
- Relax trace item attribute tests that depended on exact alias
counts/pagination offsets after the generated attribute set grew.
- (edge case) Keep generated replacement attributes as primary aliases.
`0.5.0` adds backfilled replacements such as `db.system ->
db.system.name`; because `db.system` matches Sentry’s existing secondary
alias `span.system`, the generated replacement could otherwise inherit
`secondary_alias=True` and be hidden from EAP attribute metadata.


## Related

`sentry-conventions` bump in Snuba:
getsentry/snuba#7884

---------

Co-authored-by: GPT-5.5 <noreply@openai.com>
cleptric pushed a commit to getsentry/sentry that referenced this pull request May 5, 2026
Bumps `sentry-conventions` from `>=0.3.0` to `>=0.5.0` and refreshes the
generated
`src/sentry/search/eap/spans/sentry_conventions/deprecated_attributes.json`
from the matching upstream tag
([getsentry/sentry-conventions@0.5.0](https://github.com/getsentry/sentry-conventions/releases/tag/0.5.0)).

Backend updates:
- Preserve Sentry’s legacy `sentry.profile_id` transaction profile
attribute, since `0.5.0` now defines `sentry.profiler_id` for continuous
profiling.
- Relax trace item attribute tests that depended on exact alias
counts/pagination offsets after the generated attribute set grew.
- (edge case) Keep generated replacement attributes as primary aliases.
`0.5.0` adds backfilled replacements such as `db.system ->
db.system.name`; because `db.system` matches Sentry’s existing secondary
alias `span.system`, the generated replacement could otherwise inherit
`secondary_alias=True` and be hidden from EAP attribute metadata.


## Related

`sentry-conventions` bump in Snuba:
getsentry/snuba#7884

---------

Co-authored-by: GPT-5.5 <noreply@openai.com>
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.

3 participants