Skip to content

Commit

Permalink
Adding requirement for ConsistentParentBased to allow customization.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterF778 committed Dec 20, 2024
1 parent db169b3 commit 9cb5a78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oteps/0250-Composite_Samplers.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,13 @@ If the flag is not set:
- The resulting THRESHOLD value is `null` (or equivalent).
- The `IsAdjustedCountReliable` returns `false`.

In all cases with valid parent context:
By default, in all cases with valid parent context:

- The `GetAttributes` function returns empty set.
- The `UpdateTraceState` function returns its argument, without any modifications.

However, `ConsistentParentBased` implementations SHOULD allow users to customize added Attributes as well as modify the trace state depending on whether the parent Span is local or remote.

### ConsistentAnyOf

`ConsistentAnyOf` is a composite sampler which takes a non-empty list of ComposableSamplers (delegates) as the argument. The intention is to make a positive sampling decision if __any of__ the delegates would make a positive decision.
Expand Down

0 comments on commit 9cb5a78

Please sign in to comment.