Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

JoshuaMoelans
Copy link
Member

Related to the upcoming docs change getsentry/sentry-docs#14201 ;
We don't want users interacting with the sentry_set_trace(trace_id, parent_span_id) interface directly (as this is mainly meant for downstream SDKs to call into), so we provide an alternative way to specify a 'trace boundary'.

Copy link

github-actions bot commented Jun 30, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 7c827bf

@JoshuaMoelans JoshuaMoelans marked this pull request as ready for review June 30, 2025 15:38
@JoshuaMoelans JoshuaMoelans merged commit 3d9c118 into master Jul 1, 2025
33 checks passed
@JoshuaMoelans JoshuaMoelans deleted the joshua/feat/trace_boundary branch July 1, 2025 09:14
JoshuaMoelans added a commit to getsentry/sentry-docs that referenced this pull request Jul 1, 2025
<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->

[Current
docs](https://docs.sentry.io/platforms/native/tracing/instrumentation/custom-instrumentation/)
[Updated docs (vercel
preview)](https://sentry-docs-git-joshua-settraceclarification.sentry.dev/platforms/native/tracing/instrumentation/custom-instrumentation/#trace-boundaries)

## DESCRIBE YOUR PR
Adding some more detailed explanation on the Native handling of trace
boundaries & when/how to set a new trace.

Only merge after getsentry/sentry-native#1293

ToDo
- [x] add better explanation
- [x] ? provide example of generating new trace/span ID?
- we don't really have an API for this (yet), but we could reuse
`sentry_uuid_t uid = sentry_uuid_new_v4();`?
  -> added in getsentry/sentry-native#1293

## 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+

---------

Co-authored-by: Mischan Toosarani-Hausberger <[email protected]>
bitsandfoxes pushed a commit to getsentry/sentry-docs that referenced this pull request Jul 3, 2025
<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->

[Current
docs](https://docs.sentry.io/platforms/native/tracing/instrumentation/custom-instrumentation/)
[Updated docs (vercel
preview)](https://sentry-docs-git-joshua-settraceclarification.sentry.dev/platforms/native/tracing/instrumentation/custom-instrumentation/#trace-boundaries)

## DESCRIBE YOUR PR
Adding some more detailed explanation on the Native handling of trace
boundaries & when/how to set a new trace.

Only merge after getsentry/sentry-native#1293

ToDo
- [x] add better explanation
- [x] ? provide example of generating new trace/span ID?
- we don't really have an API for this (yet), but we could reuse
`sentry_uuid_t uid = sentry_uuid_new_v4();`?
  -> added in getsentry/sentry-native#1293

## 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+

---------

Co-authored-by: Mischan Toosarani-Hausberger <[email protected]>
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