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