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

Breadcrumb

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

function HttpEndpointResolver::createDefaultUri

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

File

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

Class

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

Namespace

OpenTelemetry\Contrib\Otlp

Code

private function createDefaultUri(array $components, string $signal) : UriInterface {
    if (isset($components[self::SCHEME_ATTRIBUTE])) {
        self::validateScheme($components[self::SCHEME_ATTRIBUTE]);
    }
    return $this->createUri()
        ->withScheme($components[self::SCHEME_ATTRIBUTE] ?? self::DEFAULT_SCHEME)
        ->withPath(self::resolvePath($components[self::PATH_ATTRIBUTE] ?? self::ROOT_PATH, $signal))
        ->withHost($components[self::HOST_ATTRIBUTE]);
}

API Navigation

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