Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion develop-docs/sdk/data-model/event-payloads/contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

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?

Copy link
Member Author

@mjq mjq Mar 31, 2025

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.

Copy link
Member

Choose a reason for hiding this comment

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


- Example: `0.1`

Expand Down