Skip to content

ref(spans): Read deprecations from sentry-conventions - #116399

Merged
mjq merged 1 commit into
masterfrom
mjq/deprecations-from-conventions-lib
May 29, 2026
Merged

mjq merged 1 commit into
masterfrom
mjq/deprecations-from-conventions-lib

Conversation

@mjq

@mjq mjq commented May 28, 2026 •

Copy link
Copy Markdown
Member

Currently the mappings between deprecated attribute names is stored in a separate JSON file (deprecated_attributes.json). This file requires a separate script in a different repo to be run to keep up to date, which was easy to miss. All the information already exists in the sentry-conventions library - read directly from the library instead.


🤖: Claude Code (Opus 4.6) used to generate the code, with human editing + careful review. All words my own.

Currently the mappings between deprecated attribute names is stored in a
separate JSON file (`deprecated_attributes.json`). This file requires a
separate script in a different repo to be run to keep up to date
(https://github.com/getsentry/sentry-conventions/blob/aff7614ea9e9d99b0ddd4eafe6bdc2abc23e77a3/scripts/generate_deprecated_attributes_json.ts).
All the information already exists in the `sentry-conventions` library - read
directly from the library instead.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 28, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 53062e6. Configure here.

@mjq
mjq marked this pull request as ready for review May 28, 2026 17:34
@mjq
mjq requested review from a team as code owners May 28, 2026 17:34

@nsdeschenes nsdeschenes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Everything looks good to me, nice clean up 🧼 🧹

@mjq
mjq merged commit 228fa7f into master May 29, 2026
72 checks passed
@mjq
mjq deleted the mjq/deprecations-from-conventions-lib branch May 29, 2026 13:49
mjq added a commit to getsentry/sentry-conventions that referenced this pull request May 29, 2026
`scripts/generate_deprecated_attributes_json.ts` generates a JSON file containing mappings between attributes and their deprecations.

The only user of this JSON file was Sentry, and it had to be copied manually whenever the conventions library was updated. With getsentry/sentry#116399 Sentry no longer reads from this JSON file, instead using the `sentry-conventions` Python package directly.

Remove the script and generated file.
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