Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Update text/trace/0235-sampling-threshold-in-trace-state.md
Browse files Browse the repository at this point in the history
Co-authored-by: Otmar Ertl <[email protected]>
  • Loading branch information
jmacd and oertl authored Oct 21, 2024
1 parent 7c0bcb8 commit 6fd6d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/trace/0235-sampling-threshold-in-trace-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ where -> indicates a parent to child relationship.
- `C` uses a parent-based sampler. This means that C indirectly follows the same rejection threshold as its parent B.

When the sampling decision for `A` is to *keep* the span, its outgoing traceparent will have the `sampled` flag SET and the `th` in its outgoing tracestate will be set to `0xc0_0000_0000_0000`.
When the sampling decision for `A` is to *drop* the span, its outgoing traceparent will have the `sampled` flag UNSET but the `th` in its outgoing tracestate will still be set to `0xc0_0000_0000_0000`.
When the sampling decision for `A` is to *drop* the span, its outgoing traceparent will have the `sampled` flag UNSET and `th` in its outgoing tracestate will be removed.
When the sampling decision for `B` is to *keep* the span, its outgoing traceparent will have the `sampled` flag SET and the `th` in its outgoing tracestate will be set to `0x80_0000_0000_0000`.
C (being a parent based sampler) samples a span purely based on its parent (B in this case), it will use the sampled flag to make the decision. Its outgoing `th` value will continue to reflect what it got from B (`0x80_0000_0000_0000`), and this is useful to understand its adjusted count.

Expand Down

0 comments on commit 6fd6d0c

Please sign in to comment.