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
commit20f9920d4704e28ee8aa066d151b522c0d14e166 (patch)
tree09ba43ff7ad46223b0ecac8a2e3c6a7f525cfa2a /kamon-core/src/main/scala/kamon/instrumentation/SprayServerInstrumentation.scala
parentedbdd04d67893b4ebbcee1b1b08bc531219f04a9 (diff)
downloadKamon-20f9920d4704e28ee8aa066d151b522c0d14e166.tar.gz
Kamon-20f9920d4704e28ee8aa066d151b522c0d14e166.tar.bz2
Kamon-20f9920d4704e28ee8aa066d151b522c0d14e166.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}]")