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

Breadcrumb

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

function ConstantDecision::name

File

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

Class

ConstantDecision
How spans should be sampled:

Namespace

Opentelemetry\Proto\Trace\V1\ConstantSampler

Code

public static function name($value) {
    if (!isset(self::$valueToName[$value])) {
        throw new UnexpectedValueException(sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
    }
    return self::$valueToName[$value];
}
RSS feed
Powered by Drupal