aboutsummaryrefslogtreecommitdiff
path: root/kamon-spray
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2014-12-03 02:10:46 +0100
committerIvan Topolnjak <ivantopo@gmail.com>2014-12-03 02:10:46 +0100
commit216687a130d9f68aacc67d7fe932fb4007288291 (patch)
treeed3a525c4436f44b0dfd8aa6695ee63a3bc01bb6 /kamon-spray
parent3ef0a1b6e7c3e277fb44d607f248fd94c20df5c0 (diff)
downloadKamon-216687a130d9f68aacc67d7fe932fb4007288291.tar.gz
Kamon-216687a130d9f68aacc67d7fe932fb4007288291.tar.bz2
Kamon-216687a130d9f68aacc67d7fe932fb4007288291.zip
= core: first simple approach to providing traces and a subscription mechanism.
Diffstat (limited to 'kamon-spray')
-rw-r--r--kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala b/kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala
index 2bdd96e7..2c5e42ae 100644
--- a/kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala
+++ b/kamon-spray/src/main/scala/spray/can/server/ServerRequestInstrumentation.scala
@@ -70,7 +70,7 @@ class ServerRequestInstrumentation {
val storedContext = openRequest.traceContext
// The stored context is always a DefaultTraceContext if the instrumentation is running
- val system = storedContext.asInstanceOf[DefaultTraceContext].system
+ val system = storedContext.asInstanceOf[MetricsOnlyContext].system
verifyTraceContextConsistency(incomingContext, storedContext, system)