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

Breadcrumb

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

function ConstantSampler::setDecision

Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision decision = 1;</code>

Parameters

int $var:

Return value

$this

File

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

Class

ConstantSampler
Sampler that always makes a constant decision on span sampling.

Namespace

Opentelemetry\Proto\Trace\V1

Code

public function setDecision($var) {
    GPBUtil::checkEnum($var, \Opentelemetry\Proto\Trace\V1\ConstantSampler\ConstantDecision::class);
    $this->decision = $var;
    return $this;
}
RSS feed
Powered by Drupal