Skip to content

Commit

Permalink
Merge pull request #332 from qiqizjl/trace_bug
Browse files Browse the repository at this point in the history
fix tracer middeware bug
  • Loading branch information
limingxinleo committed Aug 5, 2019
2 parents e356ca9 + b04348b commit 0f8d999
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -13,6 +13,7 @@
## Fixed

- [#325](https://github.com/hyperf-cloud/hyperf/pull/325) Fixed consul service check the same service registration status more than one times.
- [#332](https://github.com/hyperf-cloud/hyperf/pull/332) Fixed type error in `Hyperf\Tracer\Middleware\TraceMiddeware`.

# v1.0.9 - 2019-08-03

Expand Down
1 change: 1 addition & 0 deletions src/tracer/publish/opentracing.php
Expand Up @@ -9,6 +9,7 @@
* @contact group@hyperf.io
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
*/

use Zipkin\Samplers\BinarySampler;

return [
Expand Down
2 changes: 1 addition & 1 deletion src/tracer/src/Middleware/TraceMiddeware.php
Expand Up @@ -59,7 +59,7 @@ protected function buildSpan(ServerRequestInterface $request)
{
$uri = $request->getUri();
$span = $this->tracing->span('request', SERVER);
$span->tag('coroutine.id', Coroutine::id());
$span->tag('coroutine.id', (string) Coroutine::id());
$span->tag('request.path', (string) $uri);
$span->tag('request.method', $request->getMethod());
foreach ($request->getHeaders() as $key => $value) {
Expand Down

0 comments on commit 0f8d999

Please sign in to comment.