-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,9 +32,11 @@ Other samplers include: | |
which samples a fraction of spans, based on the fraction given to the sampler. | ||
If you set .5, half of all the spans are sampled. | ||
- [`ParentBased`](https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#ParentBased), | ||
which behaves differently based on the incoming sampling decision. | ||
`ParentBased` samples spans that have parents that were sampled, and doesn't | ||
sample spans whose parents were not sampled. | ||
is a sampler decorator which behaves differently, based on the parent of the | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dashpole
Contributor
|
||
span. If the span has no parent, the decorated sampler is used to make | ||
sampling decision based on the parent of the span. By default, `ParentBased` | ||
samples spans that have parents that were sampled, and doesn't sample spans | ||
whose parents were not sampled. | ||
|
||
By default, the tracer provider uses a `ParentBased` sampler with the | ||
`AlwaysSample` sampler. | ||
|
I prefer the term "composite" to "decorator"