OpenTelemetry PHP

ComposableSamplerInterface

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
experimental

Table of Contents

Methods

getDescription()  : string
getSamplingIntent()  : SamplingIntentInterface

Methods

On this page

Search results