TraceIdRatioBased
extends Message
in package
Sampler that tries to uniformly sample traces with a given ratio.
The ratio of sampling a trace is equal to that of the specified ratio.
Generated from protobuf message opentelemetry.proto.trace.v1.TraceIdRatioBased
Table of Contents
Properties
- $samplingRatio : mixed
- The desired ratio of sampling. Must be within [0.0, 1.0].
Methods
- __construct() : mixed
- Constructor.
- getSamplingRatio() : float
- The desired ratio of sampling. Must be within [0.0, 1.0].
- setSamplingRatio() : $this
- The desired ratio of sampling. Must be within [0.0, 1.0].
Properties
$samplingRatio
The desired ratio of sampling. Must be within [0.0, 1.0].
protected
mixed
$samplingRatio
= 0.0
Generated from protobuf field double samplingRatio = 1;
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type float $samplingRatio The desired ratio of sampling. Must be within [0.0, 1.0].
}
getSamplingRatio()
The desired ratio of sampling. Must be within [0.0, 1.0].
public
getSamplingRatio() : float
Generated from protobuf field double samplingRatio = 1;
Return values
floatsetSamplingRatio()
The desired ratio of sampling. Must be within [0.0, 1.0].
public
setSamplingRatio(float $var) : $this
Generated from protobuf field double samplingRatio = 1;
Parameters
- $var : float