class HttpPlugClientResolver
Hierarchy
- class \OpenTelemetry\SDK\Common\Adapter\HttpDiscovery\HttpPlugClientResolver implements \OpenTelemetry\SDK\Common\Http\HttpPlug\Client\ResolverInterface
Expanded class hierarchy of HttpPlugClientResolver
File
-
vendor/
open-telemetry/ sdk/ Common/ Adapter/ HttpDiscovery/ HttpPlugClientResolver.php, line 11
Namespace
OpenTelemetry\SDK\Common\Adapter\HttpDiscoveryView source
final class HttpPlugClientResolver implements ResolverInterface {
public function __construct(?HttpAsyncClient $httpAsyncClient = null) {
}
public static function create(?HttpAsyncClient $httpAsyncClient = null) : self {
return new self($httpAsyncClient);
}
public function resolveHttpPlugAsyncClient() : HttpAsyncClient {
return $this->httpAsyncClient ??= HttpAsyncClientDiscovery::find();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
HttpPlugClientResolver::create | public static | function | ||
HttpPlugClientResolver::resolveHttpPlugAsyncClient | public | function | Overrides ResolverInterface::resolveHttpPlugAsyncClient | |
HttpPlugClientResolver::__construct | public | function |