-
-
Notifications
You must be signed in to change notification settings - Fork 223
Add Dynamic Sampling Context + Baggage Spec #611
Comments
Problem: where should it be sent?
Does what we sent in the envelope header need to be same as http header (baggage)?
|
A list of PRs that @Lms24 sent me with all the baggage functionality in JS. Maybe this helps writing the documentation?
|
getsentry/sentry-javascript#5290 (comment) for reference of what concerns to address see this comment. Notes from SDK DS sync. Transactions have platform specific complexities. Maybe a table where devs can include descriptions and examples of such can be included |
confirming list of relevant values: Trace-aware head sampling based on trace state information from the frontend SDK (requires SDK support):
@ale-cota can you clarify what "No condition" means? |
@smeubank to add on the list posted above: @lforst and I talked about names/keys of values to be propagated via baggage and sent via an envelope header. He'll include a detailed list once his PR is ready but this is what we came up with: Baggage keys:
Items in
|
As part of these docs, I would like to take some time to establish the terms we refer to these different concepts. Traces, transactions, and spans have all been long defined in our product docs. In event payload (so both errors and transactions), there exists the contexts interface, one of which is the Trace Contexts (a contexts keyed by We then have the key-value bag needed to make dynamic sampling decisions. Previously this was called Trace Contexts also, but I propose it be called Dynamic Sampling Context (thanks @lobsterkatie for the suggestion). This dynamic sampling context is used in two ways:
|
I like the idea of calling this dynamic sampling context, so that gets a buy-in from me. Annoyingly on the relay side the |
@mitsuhiko In relay, these are two different structs with the same name. As far as I can see, |
I just opened #613 to get this specced. It would be cool if we could get some early feedback. |
In Develop Docs
Write down baggage propagation “spec” to define clear rules of how baggage is created and passed along downstream.
clarify confusion around naming:
The following list is probably not complete but it should include (writing this down after the meeting on Daily from 18th):
reference existing docs
#425
#409
The text was updated successfully, but these errors were encountered: