Skip to content

Commit 860a113

Browse files
committed
Split ALWAYS_PARENT based on default behavior if no parent
Signed-off-by: Bogdan Drutu <[email protected]>
1 parent 18b2752 commit 860a113

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

specification/trace/sdk.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,17 @@ These are the default samplers implemented in the OpenTelemetry SDK:
105105

106106
* ALWAYS_ON
107107
* This will be used as a default.
108+
* Returns `RECORD_AND_SAMPLED` always.
108109
* Description MUST be `AlwaysOnSampler`.
109110
* ALWAYS_OFF
111+
* Returns `NOT_RECORD` always.
110112
* Description MUST be `AlwaysOffSampler`.
111-
* ALWAYS_PARENT
112-
* `Returns RECORD_AND_SAMPLED` if `SampledFlag` is set to true on parent
113+
* ALWAYS_PARENT_OR_ON
114+
* Returns `NOT_RECORD` if `SampledFlag` is set to `false` on parent
115+
SpanContext and `RECORD_AND_SAMPLED` otherwise.
116+
* Description MUST be `AlwaysParentSampler`.
117+
* ALWAYS_PARENT_OR_OFF
118+
* Returns `RECORD_AND_SAMPLED` if `SampledFlag` is set to `true` on parent
113119
SpanContext and `NOT_RECORD` otherwise.
114120
* Description MUST be `AlwaysParentSampler`.
115121
* Probability

0 commit comments

Comments
 (0)