aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala
diff options
context:
space:
mode:
authorIvan Topolnak <ivantopo@gmail.com>2013-10-04 16:12:29 -0300
committerIvan Topolnak <ivantopo@gmail.com>2013-10-04 16:12:29 -0300
commitbe683c67235e95daa6d980b91271ef06364f3567 (patch)
tree152e0010e00846f241432a64b78d4ecee0370ecc /kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala
parentd5fef9225bd89238844e97f3b461bb1a4ce19986 (diff)
downloadKamon-be683c67235e95daa6d980b91271ef06364f3567.tar.gz
Kamon-be683c67235e95daa6d980b91271ef06364f3567.tar.bz2
Kamon-be683c67235e95daa6d980b91271ef06364f3567.zip
Simplify logging instrumentation and integrate it with kamon-core, kamon-ouw is gone.
Diffstat (limited to 'kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala')
-rw-r--r--kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala b/kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala
index 32eabe71..5117e7e7 100644
--- a/kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala
+++ b/kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala
@@ -32,7 +32,7 @@ class SprayServerInstrumentation {
Tracer.start
val discard = openRequest.asInstanceOf[ContextAware].traceContext
- Tracer.context().map(_.entries ! Rename(request.uri.path.toString()))
+ Tracer.context().map(_.tracer ! Rename(request.uri.path.toString()))
}
@Pointcut("execution(* spray.can.server.OpenRequestComponent$DefaultOpenRequest.handleResponseEndAndReturnNextOpenRequest(..)) && target(openRequest)")
@@ -42,7 +42,7 @@ class SprayServerInstrumentation {
def afterFinishingRequest(openRequest: OpenRequest): Unit = {
val original = openRequest.asInstanceOf[ContextAware].traceContext
- Tracer.context().map(_.entries ! Finish())
+ Tracer.context().map(_.tracer ! Finish())
if(Tracer.context() != original) {
println(s"OMG DIFFERENT Original: [${original}] - Came in: [${Tracer.context}]")