remove redundant interface
This commit is contained in:
parent
2e019e4f1b
commit
350d40cdfe
|
@ -12,7 +12,6 @@ use function in_array;
|
|||
use InvalidArgumentException;
|
||||
use function json_encode;
|
||||
use OpenTelemetry\API\Common\Signal\Signals;
|
||||
use OpenTelemetry\Contrib\Otlp\OtlpTransportFactoryInterface;
|
||||
use OpenTelemetry\Contrib\Otlp\OtlpUtil;
|
||||
use OpenTelemetry\SDK\Behavior\LogsMessagesTrait;
|
||||
use OpenTelemetry\SDK\Common\Environment\EnvironmentVariablesTrait;
|
||||
|
@ -24,7 +23,7 @@ use function parse_url;
|
|||
use RuntimeException;
|
||||
use function sprintf;
|
||||
|
||||
final class GrpcTransportFactory implements TransportFactoryInterface, OtlpTransportFactoryInterface
|
||||
final class GrpcTransportFactory implements TransportFactoryInterface
|
||||
{
|
||||
use EnvironmentVariablesTrait;
|
||||
use LogsMessagesTrait;
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OpenTelemetry\Contrib\Otlp;
|
||||
|
||||
use OpenTelemetry\SDK\Common\Export\TransportFactoryInterface;
|
||||
|
||||
interface OtlpTransportFactoryInterface
|
||||
{
|
||||
public function withSignal(string $signal): TransportFactoryInterface;
|
||||
|
||||
public function withProtocol(string $protocol): TransportFactoryInterface;
|
||||
}
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\Contrib\OtlpHttp;
|
|||
|
||||
use InvalidArgumentException;
|
||||
use OpenTelemetry\API\Common\Signal\Signals;
|
||||
use OpenTelemetry\Contrib\Otlp\OtlpTransportFactoryInterface;
|
||||
use OpenTelemetry\Contrib\Otlp\OtlpUtil;
|
||||
use OpenTelemetry\Contrib\Otlp\Protocols;
|
||||
use OpenTelemetry\SDK\Common\Environment\EnvironmentVariablesTrait;
|
||||
|
@ -16,7 +15,7 @@ use OpenTelemetry\SDK\Common\Export\Http\PsrTransportFactory;
|
|||
use OpenTelemetry\SDK\Common\Export\TransportFactoryInterface;
|
||||
use OpenTelemetry\SDK\Common\Otlp\HttpEndpointResolver;
|
||||
|
||||
class OtlpHttpTransportFactory implements TransportFactoryInterface, OtlpTransportFactoryInterface
|
||||
class OtlpHttpTransportFactory implements TransportFactoryInterface
|
||||
{
|
||||
use EnvironmentVariablesTrait;
|
||||
|
||||
|
|
Loading…
Reference in New Issue