function TraceIdRatioBased::setSamplingRatio
The desired ratio of sampling. Must be within [0.0, 1.0].
Generated from protobuf field <code>double samplingRatio = 1;</code>
Parameters
float $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ TraceIdRatioBased.php, line 59
Class
- TraceIdRatioBased
- 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.
Namespace
Opentelemetry\Proto\Trace\V1Code
public function setSamplingRatio($var) {
GPBUtil::checkDouble($var);
$this->samplingRatio = $var;
return $this;
}