function Discovery::find
Attempt discovery of a configurable psr-18 http client, falling back to Psr18ClientDiscovery.
1 call to Discovery::find()
- PsrTransportFactory::create in vendor/
open-telemetry/ sdk/ Common/ Export/ Http/ PsrTransportFactory.php - @phan-suppress PhanTypeMismatchArgumentNullable
File
-
vendor/
open-telemetry/ sdk/ Common/ Http/ Psr/ Client/ Discovery.php, line 33
Class
Namespace
OpenTelemetry\SDK\Common\Http\Psr\ClientCode
public static function find(array $options = []) : ClientInterface {
$options = array_filter($options);
foreach (self::discoverers() as $clientDiscovery) {
/** @var DiscoveryInterface $clientDiscovery */
if ($clientDiscovery->available()) {
return $clientDiscovery->create($options);
}
}
return Psr18ClientDiscovery::find();
}