diff options
author | Diego <diegolparra@gmail.com> | 2014-09-15 22:35:37 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-09-15 22:35:37 -0300 |
commit | f3aacf437193715405efbafdd8c12f5dcb1105e0 (patch) | |
tree | 0984e5321f7f2cb4af6480a21d0447cc3a5bed10 /kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala | |
parent | 581b621d7e86106e367967811f9c1b8a7a5e63a0 (diff) | |
download | Kamon-f3aacf437193715405efbafdd8c12f5dcb1105e0.tar.gz Kamon-f3aacf437193715405efbafdd8c12f5dcb1105e0.tar.bz2 Kamon-f3aacf437193715405efbafdd8c12f5dcb1105e0.zip |
= play: fixes #84
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 ⇒ |