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

Breadcrumb

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

function OtlpUtil::method

3 calls to OtlpUtil::method()
LogsExporterFactory::getEndpoint in vendor/open-telemetry/exporter-otlp/LogsExporterFactory.php
MetricExporterFactory::getEndpoint in vendor/open-telemetry/exporter-otlp/MetricExporterFactory.php
SpanExporterFactory::getEndpoint in vendor/open-telemetry/exporter-otlp/SpanExporterFactory.php

File

vendor/open-telemetry/exporter-otlp/OtlpUtil.php, line 32

Class

OtlpUtil

Namespace

OpenTelemetry\Contrib\Otlp

Code

public static function method(string $signal) : string {
    if (!array_key_exists($signal, self::METHODS)) {
        throw new UnexpectedValueException('gRPC method not defined for signal: ' . $signal);
    }
    return self::METHODS[$signal];
}

API Navigation

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