Skip to content

Commit

Permalink
more overview
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacd committed Oct 4, 2024
1 parent 2f0e387 commit 6e29b0e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion specification/trace/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,17 @@ Callers SHOULD NOT cache the returned value.
### Built-in samplers

OpenTelemetry supports a number of built-in samplers to choose from.
The default sampler is `ParentBased(root=AlwaysOn)`.

The default sampler is `ParentBased(root=AlwaysOn)`, which configures
a policy depending on whether the new span is a root or a child:

* For root spans, always sample a new context.
* For child spans, take the decision of the parent context.

By using the ParentBased sampler by default, users can change sampling
across their system by reconfiguring only root span Samplers. To
configure probability-based trace sampling across a system, users may
configure `ParentBased(root=TraceIdRatioBased{probability})`.

#### AlwaysOn

Expand Down

0 comments on commit 6e29b0e

Please sign in to comment.