⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Jan 16, 2026

DESCRIBE YOUR PR

Adds sentry.replay_id and sentry.profile_id as common span attributes to be added to every span.
(We talked about this a while ago but I realized I never added it to dev docs. Sorry for the delay!)

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.):
  • Other deadline:
  • 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

LEGAL BOILERPLATE

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

@vercel
Copy link

vercel bot commented Jan 16, 2026

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

Project Deployment Review Updated (UTC)
develop-docs Ready Ready Preview, Comment Jan 16, 2026 2:28pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
sentry-docs Ignored Ignored Preview Jan 16, 2026 2:28pm

Request Review

@Lms24 Lms24 self-assigned this Jan 16, 2026
| `sentry.segment.name` | string | The segment name (e.g., "GET /users") |
| `sentry.segment.id` | string | The segment span id |
| `sentry.span.source` | string | The source of the span name. **MUST** be set on segment spans, **MAY** be set on child spans. <br/> See [Sentry Conventions](https://github.com/getsentry/sentry-conventions/attributes/sentry#sentry-span-source) for all supported sources. <br/>See [Transaction Annotations](/sdk/data-model/event-payloads/transaction/#transaction-annotations) and [Clustering](/backend/application-domains/transaction-clustering/#automatic-transaction-clustering) for more information.|
| `sentry.profile_id` | string | The id of the currently running profile (if available) |
Copy link

Choose a reason for hiding this comment

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

Bug: The documentation introduces sentry.profile_id, but existing profiling systems use profiler_id. This inconsistency may break the linking between spans and profiles if the backend expects the old name.
Severity: CRITICAL

Suggested Fix

Confirm with the backend team whether the expected attribute for linking profiles to spans is the newly introduced sentry.profile_id or the existing profiler_id. Update the documentation to use the correct and consistent name to avoid implementation errors in SDKs. If this is a deliberate change, it should be explicitly noted.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: develop-docs/sdk/telemetry/spans/span-protocol.mdx#L172

Potential issue: The documentation introduces `sentry.profile_id` as a span attribute
for linking profiles. However, existing profiling documentation and sample formats
consistently use `profiler_id` for this purpose. This discrepancy could lead to a
functional bug if SDKs adopt `sentry.profile_id` while backend systems responsible for
associating profiles with spans still expect the `profiler_id` field. This would result
in profiles not being correctly linked to their corresponding spans, breaking the
connection in the UI. The analysis notes this could be an intentional standardization,
but without confirmation, it poses a risk.

Did we get this right? 👍 / 👎 to inform future reviews.

@Lms24
Copy link
Member Author

Lms24 commented Jan 16, 2026

Set to draft for now to confirm with profiling folks if the attribute is correct

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