Skip to content

feat(attributes): Add message_origin as a sentry.link.type value - #724

Merged
JPeer264 merged 1 commit into
mainfrom
jp/message-origin-link-type
Oct 19, 2026
Merged

JPeer264 merged 1 commit into
mainfrom
jp/message-origin-link-type

Conversation

@JPeer264

@JPeer264 JPeer264 commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Description

This adds message_origin to the known values of sentry.link.type. A queue consumer span uses it to link to the producer span that published the message, the same way cache_origin links a cache read to the span that filled the cache. The BullMQ integration of the JavaScript SDK sets it first (getsentry/sentry-javascript#21777).

It also gives every known link type a brief in enum_values, so the conventions say what each one means.

PR Checklist

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

@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 19, 2026 8:41am UTC

Request Review

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 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 message_origin as a sentry.link.type value by JPeer264 in #724
  • Add aws.lambda.resource_mapping.id attribute by pabloDeputter in #710
  • Add object to the sentry.category values by pabloDeputter in #721
  • Add http.request.duration by loewenheim in #697

Other

  • (names) Add queue.publish/create/receive/process/settle to messaging span names by pabloDeputter in #705
  • (ops) Add object.copy op by pabloDeputter in #706
  • Add view.render op by alexander-alderman-webb in #699

Bug Fixes 🐛

  • (attributes) Apply consistent scrubbing across deprecations by mjq in #692

Documentation 📚

  • Clarify cache.ttl for 0, no expiry, and reads by s1gr1d in #725

Internal Changes 🔧

  • (repo) Update CODEOWNERS to include @giortzisg by Lms24 in #708
  • Deprecate gen_ai.responses in favor of gen_ai.chat by alexander-alderman-webb in #703
  • Add deprecated messaging ops set by the Python SDK by alexander-alderman-webb in #693
  • Add view.response.render op, deprecated in favor of view.render by alexander-alderman-webb in #700
  • Add event.django op, deprecated in favor of function by alexander-alderman-webb in #698

🤖 This preview updates automatically when you update the PR.

@JPeer264
JPeer264 force-pushed the jp/message-origin-link-type branch from 74e151d to 9aefd89 Compare October 16, 2026 07:52
@JPeer264
JPeer264 force-pushed the jp/message-origin-link-type branch from 9aefd89 to 584cbfd Compare October 16, 2026 07:57
@JPeer264 JPeer264 changed the title feat(attributes): Add message_origin as a sentry.link.type example feat(attributes): Add message_origin as a sentry.link.type value Oct 16, 2026
@JPeer264
JPeer264 force-pushed the jp/message-origin-link-type branch from 584cbfd to d79072b Compare October 16, 2026 18:22
@JPeer264
JPeer264 marked this pull request as ready for review October 16, 2026 18:29
@JPeer264
JPeer264 requested a review from s1gr1d October 16, 2026 18:30

@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.

Nice! thx for adding the enum values!

@JPeer264
JPeer264 force-pushed the jp/message-origin-link-type branch from d79072b to 3f25702 Compare October 19, 2026 08:41
@JPeer264
JPeer264 enabled auto-merge (squash) October 19, 2026 08:42
@JPeer264
JPeer264 merged commit 5b4c234 into main Oct 19, 2026
17 checks passed
@JPeer264
JPeer264 deleted the jp/message-origin-link-type branch October 19, 2026 08:47
JPeer264 added a commit to getsentry/sentry-docs that referenced this pull request Oct 22, 2026
<!-- Keep the urgency section so automation can prioritize this PR. You
may delete other sections you don't need. -->

## DESCRIBE YOUR PR

This adds the `message_origin` link type to the span links page. A queue
consumer span uses it to link to the producer span that published the
message, like `cache_origin` does for cached values. The BullMQ
integration of the JavaScript SDK sets it first
(getsentry/sentry-javascript#21777), and the conventions added it in
getsentry/sentry-conventions#724.

## IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs
to go live.
Select exactly one option. For deadlines, replace `YYYY-MM-DD` with the
due date. You can update this information later by editing the PR
description.

- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: 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
supplied a deadline.

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/)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — 3f257020 Deployed Oct 19, 2026 by vercel[bot]
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