From 910830c979699db04a6745cf922631731fda4cd0 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Tue, 24 Dec 2013 09:33:51 -0300 Subject: stop using DynamicVariable for storing the TraceContext DynamicVariable uses a InheritableThreadLocal which in some cases leads to capturing a TraceContext upon FJP resize that we don't want in the new Thread, or at least that is my observation up to now :). --- kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kamon-playground/src/main/scala') diff --git a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala index 3afef0ca..333f5031 100644 --- a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala +++ b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala @@ -34,9 +34,12 @@ object SimpleRequestProcessor extends App with SimpleRoutingApp with RequestBuil import system.dispatcher val act = system.actorOf(Props(new Actor { + println("Initializing from: " + (new Throwable).getStackTraceString) def receive: Actor.Receive = { case any ⇒ sender ! any } }), "com") + Thread.sleep(10000) + implicit val timeout = Timeout(30 seconds) val pipeline = sendReceive -- cgit v1.2.3