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

Breadcrumb

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

function Protocols::validate

1 call to Protocols::validate()
Protocols::contentType in vendor/open-telemetry/exporter-otlp/Protocols.php
@psalm-return ContentTypes::*

File

vendor/open-telemetry/exporter-otlp/Protocols.php, line 23

Class

Protocols

Namespace

OpenTelemetry\Contrib\Otlp

Code

public static function validate(string $protocol) : void {
    if (!array_key_exists($protocol, self::PROTOCOLS)) {
        throw new UnexpectedValueException('Unknown protocol: ' . $protocol);
    }
}

API Navigation

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