Skip to content

Commit 23c3cda

Browse files
authored
1 parent acf6dc7 commit 23c3cda

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Contrib/Otlp/OtlpHttpTransportFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace OpenTelemetry\Contrib\Otlp;
66

7-
use OpenTelemetry\SDK\Common\Export\Http\PsrTransport;
87
use OpenTelemetry\SDK\Common\Export\Http\PsrTransportFactory;
98
use OpenTelemetry\SDK\Common\Export\TransportFactoryInterface;
9+
use OpenTelemetry\SDK\Common\Export\TransportInterface;
1010

1111
class OtlpHttpTransportFactory implements TransportFactoryInterface
1212
{
@@ -23,7 +23,7 @@ public function create(
2323
?string $cacert = null,
2424
?string $cert = null,
2525
?string $key = null,
26-
): PsrTransport {
26+
): TransportInterface {
2727
if ($compression === self::DEFAULT_COMPRESSION) {
2828
$compression = null;
2929
}

src/SDK/Common/Export/Http/PsrTransportFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Http\Discovery\Psr18ClientDiscovery;
1111
use InvalidArgumentException;
1212
use OpenTelemetry\SDK\Common\Export\TransportFactoryInterface;
13+
use OpenTelemetry\SDK\Common\Export\TransportInterface;
1314
use OpenTelemetry\SDK\Common\Http\Psr\Client\Discovery;
1415
use Psr\Http\Client\ClientInterface;
1516
use Psr\Http\Message\RequestFactoryInterface;
@@ -38,7 +39,7 @@ public function create(
3839
?string $cacert = null,
3940
?string $cert = null,
4041
?string $key = null,
41-
): PsrTransport {
42+
): TransportInterface {
4243
if (!filter_var($endpoint, FILTER_VALIDATE_URL)) {
4344
throw new InvalidArgumentException(sprintf('Invalid endpoint url "%s"', $endpoint));
4445
}

0 commit comments

Comments
 (0)