From 5aba817993111a07ce87888b0c9d7f496acc7632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Ch=C3=A1vez?= Date: Wed, 21 Oct 2020 15:38:08 +0200 Subject: [PATCH] chore(http): removes redundant method (#184) --- .../Instrumentation/Http/Server/DefaultHttpServerParser.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Zipkin/Instrumentation/Http/Server/DefaultHttpServerParser.php b/src/Zipkin/Instrumentation/Http/Server/DefaultHttpServerParser.php index 8b85da4e..75c593d7 100644 --- a/src/Zipkin/Instrumentation/Http/Server/DefaultHttpServerParser.php +++ b/src/Zipkin/Instrumentation/Http/Server/DefaultHttpServerParser.php @@ -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}).