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

Commit

Permalink
Fine tuning the behavior of GetAttributes for AnyOf sampler.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterF778 committed Aug 28, 2024
1 parent 9c47d0f commit 05943e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/0250-Composite_Samplers.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Upon invocation of its `GetSamplingIntent` function, it MUST go through the whol
`ConsistentAnyOf` sampler MUST return a `SamplingIntent` which is constructed as follows:

- If any of the delegates returned a non-`null` threshold value, the resulting threshold is the lexicographical minimum value from the set of those non-`null` values, otherwise `null`.
- The `GetAttributes` function calculates the union of `Attribute` sets as returned by the calls to `GetAttributes` function for each delegate (in the declared order) that returned a non-`null` threshold value.
- The `GetAttributes` function calculates the union of `Attribute` sets as returned by the calls to `GetAttributes` function for each delegate, in the declared order.
- The `UpdateTraceState` function makes a chain of calls to the `UpdateTraceState` functions as returned by the delegates, passing the received `Tracestate` as argument to subsequent calls and returning the last value received.

Each delegate sampler MUST be given a chance to participate in calculating the `SamplingIntent` as described above and MUST see the same argument values. The order of the delegate samplers does not affect the final sampling `Decision`.
Expand Down

0 comments on commit 05943e9

Please sign in to comment.