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

Breadcrumb

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

function TraceIdRatioBased::getSamplingRatio

The desired ratio of sampling. Must be within [0.0, 1.0].

Generated from protobuf field <code>double samplingRatio = 1;</code>

Return value

float

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/TraceIdRatioBased.php, line 47

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\V1

Code

public function getSamplingRatio() {
    return $this->samplingRatio;
}

API Navigation

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