Skip to content

ref(attributes): Deprecate sentry.span.source and change backfill status of sentry.source - #510

Merged
Lms24 merged 2 commits into
mainfrom
lms/ref-deprecate-sentry.span.source
Jul 17, 2026
Merged

ref(attributes): Deprecate sentry.span.source and change backfill status of sentry.source#510
Lms24 merged 2 commits into
mainfrom
lms/ref-deprecate-sentry.span.source

Conversation

@Lms24

@Lms24 Lms24 commented Jul 16, 2026

Copy link
Copy Markdown
Member

This PR deprecates sentry.span.source without a direct replacement. We added sentry.segment.name.source before but the expectation here is that this attribute must only ever be set on segment spans. Therefore, we don't want to normalize or backfill it from sentry.span.source.

Also required to change the sentry.source backfilling status, since its replacement no longer gets backfilled.

Side-note/context, this does not concern setting transaction_info.source on transaction events. This we'll leave as-is for transactions. We intended sentry.span.source to be the replacement but then reconsidered the approach. Since the naming was less than ideal and the JS SDK also set it on non-segment spans, we decided on hopefully the final attribute now.

@Lms24
Lms24 requested review from a team, cleptric, mjq and nsdeschenes as code owners July 16, 2026 12:16
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Deprecate rpc.grpc.status_code in favor of rpc.response.status_code by lucas-zimerman in #494
  • Add deprecated messaging.destination_kind by andreiborza in #509
  • Add sentry.segment.name.source attribute by Lms24 in #466
  • Add attribute transformations by constantinius in #465
  • Add stable app vitals attributes by buenaflor in #493
  • Deprecate sentry.frames.* attributes by buenaflor in #500
  • Add missing AI legacy aliases from Relay SpanData by vgrozdanic in #498

Internal Changes 🔧

  • (attributes) Deprecate sentry.span.source and change backfill status of sentry.source by Lms24 in #510
  • (attrs) Backport attributes and normalizations from Relay by Dav1dde in #497
  • (codeowners) Assign telemetry-experience to gen_ai/ai attributes by vgrozdanic in #506
  • (release) Show version in workflow run title by constantinius in #504

🤖 This preview updates automatically when you update the PR.

@Lms24 Lms24 self-assigned this Jul 16, 2026
@Lms24
Lms24 merged commit 1be74dc into main Jul 17, 2026
17 checks passed
@Lms24
Lms24 deleted the lms/ref-deprecate-sentry.span.source branch July 17, 2026 07:57
Lms24 added a commit to getsentry/sentry-docs that referenced this pull request Jul 17, 2026
….name.source` common attribute (#18745)

<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->

## DESCRIBE YOUR PR

Replaces the `sentry.span.source` attribute (deprecation pending via
getsentry/sentry-conventions#510) with
[`sentry.segment.name.source`](https://getsentry.github.io/sentry-conventions/attributes/sentry/#sentry-segment-name-source)
which must now exclusively be set on segment spans.

## IS YOUR CHANGE URGENT?  

Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [x] None: Not urgent, can wait up to 1 week+

## SLA

- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
added an urgent due date to it.
Thanks in advance for your help!

## PRE-MERGE CHECKLIST

*Make sure you've checked the following before merging your changes:*

- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)

## LEGAL BOILERPLATE

<!-- Sentry employees and contractors can delete or ignore this section.
-->

Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.

## EXTRA RESOURCES

- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
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