Skip to content

Commit

Permalink
Merge pull request #29 from codecov/fix_uri_name_specification
Browse files Browse the repository at this point in the history
Fix Name Output
  • Loading branch information
eliatcodecov authored Mar 7, 2022
2 parents 320cfc1 + b812660 commit 7e7baa8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Middleware/Trace.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public function handle($request, Closure $next)
$this->setSpanStatus($span, $response->status());
$this->addConfiguredTags($span, $request, $response);

$uri = $request->route() ? $request->route()->uri() : null;
if($uri) {
$span->updateName($uri);
}

$this->tracer->endActiveSpan();

return $response;
Expand Down

0 comments on commit 7e7baa8

Please sign in to comment.