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

Breadcrumb

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

function HttpEndpointResolver::validateSignal

1 call to HttpEndpointResolver::validateSignal()
HttpEndpointResolver::resolvePath in vendor/open-telemetry/exporter-otlp/HttpEndpointResolver.php

File

vendor/open-telemetry/exporter-otlp/HttpEndpointResolver.php, line 86

Class

HttpEndpointResolver
Resolves non-signal-specific OTLP HTTP endpoints to signal-specific ones according to the specification.

Namespace

OpenTelemetry\Contrib\Otlp

Code

private static function validateSignal(string $signal) : void {
    if (!in_array($signal, Signals::SIGNALS)) {
        throw new InvalidArgumentException(sprintf('Signal must be one of "%s". Given "%s"', implode(', ', Signals::SIGNALS), $signal));
    }
}

API Navigation

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