From 124eb3115adeed0c8e6dd0fa4f61706345c6d239 Mon Sep 17 00:00:00 2001 From: "742161455@qq.com" <742161455@qq.com> Date: Fri, 26 Apr 2019 10:36:56 +0800 Subject: [PATCH] fix issues 35 --- example/HTTP.php | 2 +- src/Jaeger/Span.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/example/HTTP.php b/example/HTTP.php index 3383e21..ccc84c7 100644 --- a/example/HTTP.php +++ b/example/HTTP.php @@ -53,7 +53,7 @@ $clientTrace->inject($clientSpan2->spanContext, Formats\TEXT_MAP, $injectTarget2); $method = 'GET'; -$url = 'https://github.com/search?utf8=✓&q=jaeger-php'; +$url = 'https://github.com/search?q=jaeger-php'; $client = new Client(); $res = $client->request($method, $url, ['headers' => $injectTarget2]); diff --git a/src/Jaeger/Span.php b/src/Jaeger/Span.php index 522df9c..2f9e40d 100644 --- a/src/Jaeger/Span.php +++ b/src/Jaeger/Span.php @@ -2,9 +2,6 @@ namespace Jaeger; -use OpenTracing\SpanContext; -use OpenTracing\Reference; -use Jaeger\Thrift\SpanRefType; class Span implements \OpenTracing\Span{ @@ -26,7 +23,7 @@ class Span implements \OpenTracing\Span{ public $references = []; - public function __construct($operationName, SpanContext $spanContext, $references){ + public function __construct($operationName, \OpenTracing\SpanContext $spanContext, $references){ $this->operationName = $operationName; $this->startTime = $this->microtimeToInt(); $this->spanContext = $spanContext;