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

Breadcrumb

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

function SpanFlags::name

File

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

Class

SpanFlags
SpanFlags represents constants used to interpret the Span.flags field, which is protobuf 'fixed32' type and is to be used as bit-fields. Each non-zero value defined in this enum is a bit-mask. To extract the bit-field, for example, use…

Namespace

Opentelemetry\Proto\Trace\V1

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];
}

API Navigation

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