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

Breadcrumb

  1. Drupal Core 11.1.x
  2. 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;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal