diff options
Diffstat (limited to 'kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala')
-rw-r--r-- | kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala b/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala index 2308e326..c761e72f 100644 --- a/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala +++ b/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala @@ -15,8 +15,6 @@ package kamon.play.instrumentation -import java.util.Locale - import kamon.Kamon import kamon.play.{ Play, PlayExtension } import kamon.trace.{ TraceContextAware, TraceRecorder } @@ -27,8 +25,6 @@ import play.api.mvc.Results._ import play.api.mvc._ import play.libs.Akka -import scala.collection.concurrent.TrieMap - @Aspect class RequestInstrumentation { @@ -89,6 +85,10 @@ class RequestInstrumentation { } object RequestInstrumentation { + + import java.util.Locale + import scala.collection.concurrent.TrieMap + private val cache = TrieMap.empty[String, String] def normaliseTraceName(requestHeader: RequestHeader): Option[String] = requestHeader.tags.get(Routes.ROUTE_VERB).map({ verb ⇒ |