diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-10-31 03:05:13 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-10-31 03:05:13 +0100 |
commit | 2c958ea86ded8a047af6450026ca7ec64a28bea1 (patch) | |
tree | e4bc7fe1dcdd7e45b90dd80df1a71ae81f09fb7e /kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala | |
parent | 89d3057f8025add4b94b32c142e220ffb79f6c33 (diff) | |
download | Kamon-2c958ea86ded8a047af6450026ca7ec64a28bea1.tar.gz Kamon-2c958ea86ded8a047af6450026ca7ec64a28bea1.tar.bz2 Kamon-2c958ea86ded8a047af6450026ca7ec64a28bea1.zip |
+ play: external naming for traces and segments, related to #65
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 | 2 |
1 files changed, 1 insertions, 1 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 82a43926..ca95781e 100644 --- a/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala +++ b/kamon-play/src/main/scala/kamon/play/instrumentation/RequestInstrumentation.scala @@ -42,7 +42,7 @@ class RequestInstrumentation { def beforeRouteRequest(requestHeader: RequestHeader): Unit = { val system = Akka.system() val playExtension = Kamon(Play)(system) - val defaultTraceName: String = s"${requestHeader.method}: ${requestHeader.uri}" + val defaultTraceName = playExtension.generateTraceName(requestHeader) val token = if (playExtension.includeTraceToken) { requestHeader.headers.toSimpleMap.find(_._1 == playExtension.traceTokenHeaderName).map(_._2) |