From 9138d78b8f16844a273b718a36ecde02075b0266 Mon Sep 17 00:00:00 2001 From: Christian Daguerre Date: Thu, 21 Apr 2022 03:36:21 +0200 Subject: [PATCH] Allow decoration of zipkin span converter (#608) --- src/Contrib/Zipkin/Exporter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Contrib/Zipkin/Exporter.php b/src/Contrib/Zipkin/Exporter.php index 8075c2499..4fe520843 100644 --- a/src/Contrib/Zipkin/Exporter.php +++ b/src/Contrib/Zipkin/Exporter.php @@ -9,6 +9,7 @@ use JsonException; use OpenTelemetry\SDK\Trace\Behavior\HttpSpanExporterTrait; use OpenTelemetry\SDK\Trace\Behavior\UsesSpanConverterTrait; +use OpenTelemetry\SDK\Trace\SpanConverterInterface; use OpenTelemetry\SDK\Trace\SpanExporterInterface; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\RequestFactoryInterface; @@ -34,7 +35,7 @@ public function __construct( ClientInterface $client, RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, - SpanConverter $spanConverter = null + SpanConverterInterface $spanConverter = null ) { $this->setEndpointUrl($endpointUrl); $this->setClient($client);