ComposableParentThreshold
in package
implements
ComposableSamplerInterface
FinalYes
Propagates the sampling decision of the parent and delegates root spans to the root sampler.
- A valid parent
ththat is consistent with the sampled flag of the parent (sampled == R >= th) is propagated with a reliable adjusted count. - An apparently inconsistent
this erased, that is treated as absent. - Without a usable
th, a sampled parent gives threshold 0 and an unsampled parent drops the span, both with an unreliable adjusted count.
Tags
Table of Contents
Interfaces
- ComposableSamplerInterface
- A sampler that returns its sampling preference (a {@see SamplingIntentInterface}) instead of a decision.
Properties
- $description : string
- $rootSampler : ComposableSamplerInterface
Methods
- __construct() : mixed
- getDescription() : string
- getSamplingIntent() : SamplingIntentInterface
Properties
$description read-only
private
string
$description
$rootSampler read-only
private
ComposableSamplerInterface
$rootSampler
Methods
__construct()
public
__construct(ComposableSamplerInterface $rootSampler) : mixed
Parameters
- $rootSampler : ComposableSamplerInterface
getDescription()
public
getDescription() : string
Attributes
- #[Override]
Return values
stringgetSamplingIntent()
public
getSamplingIntent(ContextInterface $parentContext, string $spanName, int $spanKind, AttributesInterface $attributes, array<string|int, mixed> $links) : SamplingIntentInterface
Parameters
- $parentContext : ContextInterface
- $spanName : string
- $spanKind : int
- $attributes : AttributesInterface
- $links : array<string|int, mixed>
Attributes
- #[Override]