-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(apple): Clarify trace propagation targets #9110
Conversation
The trace propagation target code sample was in the section of distributed tracing without an explanation, making the distributed tracing docs for Apple confusing. This is fixed now by adding an explanation and moving the trace propagation target below the distributed tracing section.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some small wording suggestions!
docs/platforms/apple/common/usage/distributed-tracing/index.mdx
Outdated
Show resolved
Hide resolved
docs/platforms/apple/common/usage/distributed-tracing/index.mdx
Outdated
Show resolved
Hide resolved
You can put string or regexes into the allowlist, and the SDK then only attaches the `sentry-trace` and `baggage` | ||
headers to all outgoing requests whose destination contains a string in the list or matches a regex in the list. | ||
|
||
**The `tracePropagationTargets` option matches the entire request URL, not just the domain. Using stricter regex to match certain parts of the URL ensures that requests don't unnecessarily have additional headers attached.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**The `tracePropagationTargets` option matches the entire request URL, not just the domain. Using stricter regex to match certain parts of the URL ensures that requests don't unnecessarily have additional headers attached.** | |
**Because the `tracePropagationTargets` option matches the entire request URL, not just the domain, you should use strict regexes that match specific parts of the URL to ensure that requests don't have unnecessary or unwanted headers attached.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to turn this into a note rather than bolding it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some language suggestions.
docs/platforms/apple/common/usage/distributed-tracing/index.mdx
Outdated
Show resolved
Hide resolved
You can put string or regexes into the allowlist, and the SDK then only attaches the `sentry-trace` and `baggage` | ||
headers to all outgoing requests whose destination contains a string in the list or matches a regex in the list. | ||
|
||
**The `tracePropagationTargets` option matches the entire request URL, not just the domain. Using stricter regex to match certain parts of the URL ensures that requests don't unnecessarily have additional headers attached.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to turn this into a note rather than bolding it.
Pre-merge checklist
If you work at Sentry, you're able to merge your own PR without review, but please don't unless there's a good reason.
Description of changes
The trace propagation target code sample was in the section of distributed tracing without an explanation, making the distributed tracing docs for Apple confusing. This is fixed now by adding an explanation and moving the trace propagation target below the distributed tracing section.