From 216687a130d9f68aacc67d7fe932fb4007288291 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Wed, 3 Dec 2014 02:10:46 +0100 Subject: = core: first simple approach to providing traces and a subscription mechanism. --- .../src/main/scala/spray/can/server/ServerRequestInstrumentation.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kamon-spray/src/main') 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) -- cgit v1.2.3