diff --git a/src/DependencyInjection/config/tracing/tracing.php b/src/DependencyInjection/config/tracing/tracing.php index 1d207d0..ca8f203 100644 --- a/src/DependencyInjection/config/tracing/tracing.php +++ b/src/DependencyInjection/config/tracing/tracing.php @@ -94,7 +94,6 @@ ->set(TracingHandler::class) ->args([ - service(TracerProviderInterface::class), service(MainSpanContextInterface::class), param('tracing.logs.level'), param('tracing.logs.channels'), diff --git a/src/Tracing/Instrumentation/LogHandler/TracingHandler.php b/src/Tracing/Instrumentation/LogHandler/TracingHandler.php index d624bfd..843da16 100644 --- a/src/Tracing/Instrumentation/LogHandler/TracingHandler.php +++ b/src/Tracing/Instrumentation/LogHandler/TracingHandler.php @@ -13,7 +13,6 @@ use Monolog\Handler\AbstractProcessingHandler; use Monolog\Logger; use Monolog\Processor\PsrLogMessageProcessor; -use OpenTelemetry\API\Trace\TracerProviderInterface; use OpenTelemetry\SDK\Trace\Span; class TracingHandler extends AbstractProcessingHandler @@ -29,7 +28,7 @@ class TracingHandler extends AbstractProcessingHandler /** * @param array $channels */ - public function __construct(protected TracerProviderInterface $tracerProvider, protected MainSpanContextInterface $mainSpanContext, $level = Logger::INFO, private array $channels = [], private string $strategy = self::STRATEGY_MAIN_SPAN, bool $bubble = true) + public function __construct(protected MainSpanContextInterface $mainSpanContext, $level = Logger::INFO, private array $channels = [], private string $strategy = self::STRATEGY_MAIN_SPAN, bool $bubble = true) { parent::__construct($level, $bubble);