function TraceIdRatioBased::__construct
Constructor.
Parameters
array $data {: Optional. Data for populating the Message object.
@type float $samplingRatio The desired ratio of sampling. Must be within [0.0, 1.0]. }
Overrides Message::__construct
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ TraceIdRatioBased.php, line 36
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 __construct($data = NULL) {
\GPBMetadata\Opentelemetry\Proto\Trace\V1\TraceConfig::initOnce();
parent::__construct($data);
}