1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-06-25 00:16:49 +02:00

sdk/trace: Fix ParentBased comment (#4604)

This commit is contained in:
Robert Pająk
2023-10-13 19:51:11 +02:00
committed by GitHub
parent 28b459520c
commit d943f0fd1b

View File

@ -158,9 +158,9 @@ func NeverSample() Sampler {
return alwaysOffSampler{} return alwaysOffSampler{}
} }
// ParentBased returns a composite sampler which behaves differently, // ParentBased returns a sampler decorator which behaves differently,
// based on the parent of the span. If the span has no parent, // based on the parent of the span. If the span has no parent,
// the root(Sampler) is used to make sampling decision. If the span has // the decorated sampler is used to make sampling decision. If the span has
// a parent, depending on whether the parent is remote and whether it // a parent, depending on whether the parent is remote and whether it
// is sampled, one of the following samplers will apply: // is sampled, one of the following samplers will apply:
// - remoteParentSampled(Sampler) (default: AlwaysOn) // - remoteParentSampled(Sampler) (default: AlwaysOn)