function HttpEndpointResolver::validateScheme
1 call to HttpEndpointResolver::validateScheme()
- HttpEndpointResolver::createDefaultUri in vendor/
open-telemetry/ exporter-otlp/ HttpEndpointResolver.php
File
-
vendor/
open-telemetry/ exporter-otlp/ HttpEndpointResolver.php, line 76
Class
- HttpEndpointResolver
- Resolves non-signal-specific OTLP HTTP endpoints to signal-specific ones according to the specification.
Namespace
OpenTelemetry\Contrib\OtlpCode
private static function validateScheme(string $protocol) : void {
if (!in_array($protocol, HttpEndpointResolverInterface::VALID_SCHEMES, true)) {
throw new InvalidArgumentException(sprintf('Expected protocol to be http or https, given: "%s"', $protocol));
}
}