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

Breadcrumb

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

function HttpEndpointResolver::addPort

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

File

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

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 addPort(UriInterface $uri, array $components) : UriInterface {
    if (isset($components[self::PORT_ATTRIBUTE])) {
        $uri = $uri->withPort($components[self::PORT_ATTRIBUTE]);
    }
    return $uri;
}

API Navigation

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