OpenTelemetry PHP

SamplingIntentInterface

The sampling preference returned by a {@see ComposableSamplerInterface}.

Tags
experimental

Table of Contents

Methods

getAttributes()  : iterable<string, mixed>
Attributes to add to the span when it is sampled.
getThreshold()  : int
The rejection threshold: the lower, the more likely the span is sampled (0 samples every span).
isAdjustedCountReliable()  : bool
Whether the threshold can be used to compute the adjusted count (the reciprocal of the sampling probability, used for span to metrics estimation).
updateTraceState()  : TraceStateInterface
Returns the TraceState of the span, given the one of the parent and the final decision. Called for every span.

Methods

getAttributes()

Attributes to add to the span when it is sampled.

public getAttributes() : iterable<string, mixed>
Return values
iterable<string, mixed>

isAdjustedCountReliable()

Whether the threshold can be used to compute the adjusted count (the reciprocal of the sampling probability, used for span to metrics estimation).

public isAdjustedCountReliable() : bool
Return values
bool
On this page

Search results