Skip to content

fix(sentry): Deprecate sentry.trace.parent_span_id - #287

Merged
mjq merged 2 commits into
mainfrom
mjq/deprecate-trace-parent-span-id
Mar 17, 2026
Merged

fix(sentry): Deprecate sentry.trace.parent_span_id#287
mjq merged 2 commits into
mainfrom
mjq/deprecate-trace-parent-span-id

Conversation

@mjq

@mjq mjq commented Mar 14, 2026

Copy link
Copy Markdown
Member

Description

This attribute was replaced with log's top level span_id field and should no longer be used. Because it was replaced with a field rather than a different attribute, I don't think there's a way to express the new location for this data in the attribute JSON.

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate && yarn format to generate and format code and docs.

If an attribute was deprecated:

@mjq
mjq requested review from a team, Lms24, cleptric, lcian and nsdeschenes as code owners March 14, 2026 02:11
@github-actions

github-actions Bot commented Mar 14, 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

  • Add device memory and core count attributes by Lms24 in #281
  • Add ui.element.* attributes by Lms24 in #284
  • Add remaining TTFB, FCP and FP web vital attributes by Lms24 in #235
  • Add LCP web vital meta attributes by Lms24 in #233
  • Add CLS web vital source attribute by Lms24 in #234
  • Add core web web vital value attributes by Lms24 in #229
  • Add allow_any_value field to attribute schema by vgrozdanic in #272

Other

  • (http) Add http.server.request.time_in_queue attribute by dingsdax in #267
  • (resource) Add resource.deployment.environment by mjq in #266
  • Add sentry.timestamp.sequence attribute to the spec by logaretm in #262
  • Add changelog tracking to attribute definitions by ericapisani in #270

Bug Fixes 🐛

  • (attributes) Remove allow_any_value boolean attribute and allow any as type by vgrozdanic in #273
  • (gen_ai) Input and output token description by obostjancic in #261
  • (sentry) Deprecate sentry.trace.parent_span_id by mjq in #287
  • Don't run changelog generation on yarn generate by Lms24 in #277
  • Avoid changelog generation recursion by Lms24 in #274

Documentation 📚

  • (sentry) Add deprecated sentry.source by s1gr1d in #288
  • Remove extra yarn run format instruction by mjq in #289
  • Update README with up-to-date links by ericapisani in #258

Internal Changes 🔧

Deps

  • Bump devalue from 5.6.3 to 5.6.4 by dependabot in #286
  • Bump dompurify from 3.3.1 to 3.3.2 by dependabot in #278
  • Bump svgo from 3.3.2 to 3.3.3 by dependabot in #275
  • Bump svelte from 5.51.5 to 5.53.5 by dependabot in #271
  • Bump rollup from 4.40.1 to 4.59.0 by dependabot in #269
  • Bump svelte from 5.48.1 to 5.51.5 by dependabot in #260

Deps Dev

  • Bump tar from 7.5.10 to 7.5.11 by dependabot in #285
  • Bump tar from 7.5.8 to 7.5.10 by dependabot in #276
  • Bump tar from 7.5.7 to 7.5.8 by dependabot in #259

Other

  • (ai) Deprecate rest of ai.* attributes by constantinius in #264
  • (attributes) Ensure each attribute json has a changelog entry by Lms24 in #282
  • (docs) Upgrade to Astro 6 by Lms24 in #283
  • (gen_ai) Deprecate gen_ai.tool.input, gen_ai.tool.message, gen_ai.tool.output by constantinius in #265
  • (repo) Populate changelog property when running yarn create:attribute by Lms24 in #280

🤖 This preview updates automatically when you update the PR.

This attribute was replaced with log's top level `span_id` field and should no
longer be used. Because it was replaced with a field rather than a different
attribute, I don't think there's a way to express the new attribute in the
attribute JSON.
@mjq
mjq force-pushed the mjq/deprecate-trace-parent-span-id branch from 3c972c0 to c9b6ce1 Compare March 16, 2026 15:04

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, makes sense to me! Two minor comments, otherwise LGTM.

"is_in_otel": false,
"example": "b0e6f15b45c36b12",
"deprecation": {
"_status": null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

just to confirm: Since nothing in the product relies on this, null is the correct status here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, I believe so. We also don't have another attribute to backfill or migrate to, since the new value is a field instead.

"_status": null
},
"changelog": [
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

l: We should add a "version": "next" entry to the changelog and mention this PR plus the deprecation.

@mjq mjq Mar 16, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@Lms24 Good catch, thanks! Would you mind confirming that I got the change right? It's my first time using the attribute changelog property. 7e47a3f#diff-ec824ae2ecf3522dfc5515d7d669b843cbf51c51c1ce9c4365cc89cbde3e78e2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you, LGTM. Thanks for adding!

@mjq
mjq force-pushed the mjq/deprecate-trace-parent-span-id branch from eaa0223 to 3c4270b Compare March 16, 2026 17:13
@mjq
mjq force-pushed the mjq/deprecate-trace-parent-span-id branch from 3c4270b to 7e47a3f Compare March 16, 2026 17:15
"_status": null
},
"changelog": [
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you, LGTM. Thanks for adding!

@mjq
mjq merged commit 5e7a8b1 into main Mar 17, 2026
12 checks passed
@mjq
mjq deleted the mjq/deprecate-trace-parent-span-id branch March 17, 2026 11:09
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