-
-
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(develop): clarify trace context's client_sample_rate #13174
base: master
Are you sure you want to change the base?
Conversation
When reading the Trace Context docs, I assumed that `client_sample_rate` (like all the other fields) was expected to be set by the client. Instead, this field is generated in Relay. If a client sets this field, it will be ignored and overwritten. Added a note to the docs for this field to clarify how it is meant to be used.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
@@ -682,7 +682,7 @@ Additional information that allows Sentry to connect multiple transactions, span | |||
|
|||
`client_sample_rate` | |||
|
|||
: _Optional_. The client-side sample rate. | |||
: _Optional_. The client-side sample rate. This field will be populated by relay. Incoming values are ignored. |
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 don't think this is fully correct, we have a code path which re-creates the DSC when the parent project is not in the same org or missing.
Maybe @jan-auer can also chime in?
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.
Yes, this was the subject of @jan-auer's recent changes. The DSC generation happens here. But the sample rate is taken from the incoming DSC, never from the trace context's client_sample_rate
- that field is never read, only set (taken from the DSC, after being recreated if necessary).
Hopefully Jan can confirm.
Co-authored-by: Alex Krawiec <[email protected]>
DESCRIBE YOUR PR
When reading the Trace Context docs, I assumed that
client_sample_rate
(like all the other fields) was expected to be set by the client. Instead, this field is generated in Relay. If a client sets this field, it will be ignored and overwritten. Added a note to the docs for this field to clarify how it is meant to be used.IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: