Skip to content

[DSC] include tracesSampleRate in Dynamic Sampling Context #5290

@Lms24

Description

@Lms24

We want to include the sample rate with which an event was sampled in the dynamic sampling context (DSC) which we send to Relay in the trace envelope header and propagate to downstream SDKs via the baggage header.

Problem:
As customer adopt DS with in product Sentry server side traces and transaction sample rate rules, then they should change the sample rate in their applications. In the situations where there is distributed tracing, there could be conflicting sample rates on different projects, leading to issues where we cannot provide DS

where should it be sent?

  • in dynamic sample context (by baggage)
  • in the envelope header
  • meta data (today becomes not necessary)

Does what we sent in the envelope header need to be same as http header (baggage)?

  • Yes

where does the public key need to be?

  • in the DSC, meaning it should be sent in the envelope header and in the propagation mechanism (i.e. baggage http header)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions