File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace OpenTelemetry \Contrib \Otlp ;
66
7- use OpenTelemetry \SDK \Common \Export \Http \PsrTransport ;
87use OpenTelemetry \SDK \Common \Export \Http \PsrTransportFactory ;
98use OpenTelemetry \SDK \Common \Export \TransportFactoryInterface ;
9+ use OpenTelemetry \SDK \Common \Export \TransportInterface ;
1010
1111class 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 }
Original file line number Diff line number Diff line change 1010use Http \Discovery \Psr18ClientDiscovery ;
1111use InvalidArgumentException ;
1212use OpenTelemetry \SDK \Common \Export \TransportFactoryInterface ;
13+ use OpenTelemetry \SDK \Common \Export \TransportInterface ;
1314use OpenTelemetry \SDK \Common \Http \Psr \Client \Discovery ;
1415use Psr \Http \Client \ClientInterface ;
1516use 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 }
You can’t perform that action at this time.
0 commit comments