Skip to content

Commit

Permalink
chore(http): removes redundant method (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs authored Oct 21, 2020
1 parent 666d214 commit 5aba817
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ public function request(Request $request, TraceContext $context, SpanCustomizer
$span->tag(Tags\HTTP_PATH, $request->getPath() ?: '/');
}

protected function spanName(Request $request): string
{
return $request->getMethod()
. ($request->getRoute() === null ? '' : ' ' . $request->getRoute());
}

/**
* spanNameFromResponse returns an appropiate span name based on the response's request,
* usually seeking for a better name than the HTTP method (e.g. GET /user/{user_id}).
Expand Down

0 comments on commit 5aba817

Please sign in to comment.