Skip to content

ref(core)!: simplify scope and tracing APIs - #1432

Open
giortzisg wants to merge 1 commit into
scopes/remove-hub-finalfrom
scopes/api-cleanup
Open

giortzisg wants to merge 1 commit into
scopes/remove-hub-finalfrom
scopes/api-cleanup

Conversation

@giortzisg

Copy link
Copy Markdown
Contributor

Description

Issues

Changelog Entry Instructions

To add a custom changelog entry, uncomment the section above. Supports:

  • Single entry: just write text
  • Multiple entries: use bullet points
  • Nested bullets: indent 4+ spaces

For more details: custom changelog entries

Reminders

Stack created with GitHub Stacks CLI • Give Feedback 💬

@giortzisg
giortzisg added this pull request to stack #1433 September 18, 2026 11:22
@giortzisg
giortzisg force-pushed the scopes/api-cleanup branch 2 times, most recently from 6845525 to 80ce9b8 Compare September 29, 2026 11:11
@giortzisg
giortzisg removed this pull request from stack #1433 September 29, 2026 11:14
@giortzisg
giortzisg added this pull request to stack #1437 September 29, 2026 11:18
This removes the obsolete MockScope and metric scope overrides. Also
simplifies the tracing API to keep only ContinueTrace as the public
continuation option.
@giortzisg
giortzisg removed this pull request from stack #1437 October 9, 2026 08:37
@giortzisg
giortzisg added this pull request to stack #1452 October 9, 2026 08:37

@szokeasaurusrex szokeasaurusrex 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!

Comment thread README.md

`GetTraceparent` returns Sentry's `sentry-trace` header value. Use
`GetTraceparentW3C` for the W3C `traceparent` header value.

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: I am not sure I would put all of this in the top-level README.md.

In any case, I would also add a section division at the end of this new section, as I don't think the things below belong under "Context and Scopes"

Comment thread tracing.go

// GetTraceparent returns the Sentry trace header value carried by ctx.
// GetTraceparent returns the sentry-trace header value carried by ctx.
// It is not the W3C traceparent header; use GetTraceparentW3C for that value.

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: I find the existing wording a bit confusing; it also makes it seem like we are assuming our users will confuse the two.

I would rather we just clarify that the headers are distinct, and tell users where they obtain the W3C traceparent header.

Suggested change
// It is not the W3C traceparent header; use GetTraceparentW3C for that value.
// The `sentry-trace` header is distinct from the W3C traceparent header, which
// can be obtained using GetTraceparentW3C.

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