Hi, Ivan In the real case, Sure I can keep MyObject in my receiver.
I'm giving this sample is because I'd like to explore the capability of how the tracelocal variable gets passed. Let's say I have messages flow like: MyActor --- > actor1 ------ > actor2 ---- ... ---- > actorN ---- > Myactor. each actor could possibly use MyObject. And I want to see whether MyOject can be routed back in above cases. Thanks Leon 在 2014年6月4日星期三UTC-7下午4时59分13秒,Ivan Topolnjak写道: > > Leon, > > Yes, we are using aspectj to instrument the Scala/Akka/Spray/Play! code > and we choose to go with load-time weaving.. before elaborating a bit more > on how to use the TraceLocal storage, from your code sample, I might be > oversimplifying your requirements, but why don't you just pass your > `MyObject` to `handleAppRequest`?, it seems like you are using a actor per > request and I don't see any reason why a simpler approach couldn't work > there. > > If you still want to use the TraceLocal storage I highly encourage you to > raise this concern in the Kamon mailing list [1] and discuss it there, that > way we also leave a record that might be useful to other Kamon users. Hope > to hear back from you soon, best regards! > > [1] https://groups.google.com/forum/#!forum/kamon-user > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
