Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceIdRatioBasedSampler.php

function TraceIdRatioBasedSampler::getDescription

Overrides SamplerInterface::getDescription

File

vendor/open-telemetry/sdk/Trace/Sampler/TraceIdRatioBasedSampler.php, line 65

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

public function getDescription() : string {
    return sprintf('%s{%.6F}', 'TraceIdRatioBasedSampler', $this->probability);
}
RSS feed
Powered by Drupal