Skip to content

Commit

Permalink
specify how probability sampler is used with ParentOrElse (open-telem…
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan authored Jul 17, 2020
1 parent 7f617ef commit 29fab9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Updates:

- Add semantic convention for NGINX custom HTTP 499 status code.
- Adapt semantic conventions for the span name of messaging systems ([#690](https://github.com/open-telemetry/opentelemetry-specification/pull/690))
- Specify how `Probability` sampler is used with `ParentOrElse` sampler.

## v0.6.0 (07-01-2020)

Expand Down
10 changes: 3 additions & 7 deletions specification/trace/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,12 @@ Description MUST NOT change over time and caller can cache the returned value.

#### Probability

* The default behavior should be to trust the parent `SampledFlag`. However
there should be configuration to change this.
* The default behavior is to apply the sampling probability only for Spans
that are root spans (no parent) and Spans with remote parent. However there
should be configuration to change this to "root spans only", or "all spans".
* The `ProbabilitySampler` MUST ignore the parent `SampledFlag`.
To respect the parent `SampledFlag`, the `ProbabilitySampler` should be used as a delegate of the `ParentOrElse` sampler specified below.
* Description MUST be `ProbabilitySampler{0.000100}`.

TODO: Add details about how the probability sampler is implemented as a function
TODO: Add details about how the `ProbabilitySampler` is implemented as a function
of the `TraceID`.
TODO: Split out the parent handling.

#### ParentOrElse

Expand Down

0 comments on commit 29fab9f

Please sign in to comment.