Skip to content

Commit

Permalink
Merge pull request #43 from jcchavezs/fix_error_tag_status_code
Browse files Browse the repository at this point in the history
Fix the error tag for when using the status code.
  • Loading branch information
jcchavezs committed Mar 21, 2019
2 parents ba67ff7 + e4c4459 commit 666308d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZipkinBundle/Middleware.php
Expand Up @@ -122,7 +122,7 @@ public function onKernelTerminate(PostResponseEvent $event)

$statusCode = $event->getResponse()->getStatusCode();
if ($statusCode > 399) {
$span->tag(Tags\ERROR, $statusCode);
$span->tag(Tags\ERROR, (string) $statusCode);
}

$span->tag(Tags\HTTP_STATUS_CODE, (string) $statusCode);
Expand Down

0 comments on commit 666308d

Please sign in to comment.