ComposableSamplerInterface
in
A sampler that returns its sampling preference (a {@see SamplingIntentInterface}) instead of a decision.
The final decision is made by the CompositeSampler that wraps it.
The threshold of an intent must not depend on the randomness value or on the sampled flag of the parent,
because both are derived from the same random source and conditioning on them would bias the statistics.
ComposableParentThreshold is the exception: it falls back to the sampled flag of a parent without th.
Tags
Table of Contents
Methods
Methods
getDescription()
public
getDescription() : string
Return values
stringgetSamplingIntent()
public
getSamplingIntent(ContextInterface $parentContext, string $spanName, int $spanKind, AttributesInterface $attributes, array<int, LinkInterface> $links) : SamplingIntentInterface
Parameters
- $parentContext : ContextInterface
- $spanName : string
- $spanKind : int
- $attributes : AttributesInterface
- $links : array<int, LinkInterface>