Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
TraceIdRatioBasedSampler.php
TraceIdRatioBasedSampler::$probability
Type:
probability
File
vendor/
open-telemetry/
sdk/
Trace/
Sampler/
TraceIdRatioBasedSampler.php
, line 24
Class
TraceIdRatioBasedSampler
This implementation of the SamplerInterface records with given probability. Example: ``` use OpenTelemetry\API\Trace\TraceIdRatioBasedSampler; $sampler = new TraceIdRatioBasedSampler(0.01); ```
Namespace
OpenTelemetry\SDK\Trace\Sampler
Code
private readonly float $probability;
RSS feed