From 539b54c3b43c68ad418ca77032f557a4da3e3a59 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Sun, 30 Aug 2015 13:36:27 +0200 Subject: wip: only the modules that actually require an actor system are getting one. --- .../kamon/spray/instrumentation/ServerRequestInstrumentation.scala | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'kamon-spray/src/main/scala/kamon') diff --git a/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala b/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala index d1031962..82d3ceb1 100644 --- a/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala +++ b/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala @@ -85,14 +85,11 @@ class ServerRequestInstrumentation { } def verifyTraceContextConsistency(incomingTraceContext: TraceContext, storedTraceContext: TraceContext): Unit = { - def publishWarning(text: String): Unit = - SprayExtension.log.warn(text) - if (incomingTraceContext.nonEmpty) { if (incomingTraceContext.token != storedTraceContext.token) - publishWarning(s"Different trace token found when trying to close a trace, original: [${storedTraceContext.token}] - incoming: [${incomingTraceContext.token}]") + SprayExtension.log.warn(s"Different trace token found when trying to close a trace, original: [${storedTraceContext.token}] - incoming: [${incomingTraceContext.token}]") } else - publishWarning(s"EmptyTraceContext present while closing the trace with token [${storedTraceContext.token}]") + SprayExtension.log.warn(s"EmptyTraceContext present while closing the trace with token [${storedTraceContext.token}]") } def recordHttpServerMetrics(response: HttpMessagePartWrapper, traceName: String): Unit = -- cgit v1.2.3