aboutsummaryrefslogtreecommitdiff
path: root/kamon-playground
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2013-12-24 09:33:51 -0300
committerIvan Topolnjak <ivantopo@gmail.com>2013-12-24 09:33:51 -0300
commit910830c979699db04a6745cf922631731fda4cd0 (patch)
tree6957cd73faac843779a7b709c80ad9339a932b2f /kamon-playground
parentf648ccc25197d6a0b604722c78c715a8ef6b59ae (diff)
downloadKamon-910830c979699db04a6745cf922631731fda4cd0.tar.gz
Kamon-910830c979699db04a6745cf922631731fda4cd0.tar.bz2
Kamon-910830c979699db04a6745cf922631731fda4cd0.zip
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 :).
Diffstat (limited to 'kamon-playground')
-rw-r--r--kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala3
1 files changed, 3 insertions, 0 deletions
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