So metrics.
I would suggest piggybacking on kamon: http://kamon.io/
Since the guys have many of the things figured out already - it's open
source so it should be possible to either get metrics from their pointcuts
or piggyback in some other way.


On Fri, May 30, 2014 at 11:58 AM, Leon Ma <tutuf...@gmail.com> wrote:

> My case is actually to pass some information like Mapped Diagnostic
> Context.
>
> Some of my legacy java code is using threadlocal to carry on those MDC
> information, that's why I need a way to:
>
> intercept "tell" : collect threadlocal information and do some wrapping
> like MDCCtx(mymessage, threadLocalInfoThatINeed)
> intercept "receive" : unwrapper MDCCtx, recover thread local info.
>
> Thanks
>
> Leon
>
>
>
>
>
> 在 2014年5月29日星期四UTC+8下午11时27分01秒,Konrad Malawski写道:
>
>> Hello Leon,
>> Well, "the Scala way"™ would rather be using plain total or partial
>> functions and composing them - I believe that's what whoever the quoted
>> sentence comes from had in mind.
>> In Akka we also believe that less magic is better :-)
>>
>> I would therefore suggest you to try modelling your required behaviour in
>> terms of functions instead of aspects.
>> What's your use case?
>>
>>
>> --
>> Cheers,
>> Konrad 'ktoso' Malawski
>> hAkker - Typesafe, Inc
>>
>> <http://scaladays.org>
>>
>  --
> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
Konrad 'ktoso' Malawski
hAkker - Typesafe, Inc

<http://scaladays.org>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to