ActorMetrics is a trait that provides the following metrics: * message-handler.meter.{mean,m1,m5,m15} = moving avg of rate at which receive handler is called * message-handler.duration.{mean,p75,p99,p999} = histogram of wrappedReeive() running time
A base trait for enabling stackable traits that enhance Actors.
A base trait for enabling stackable traits that enhance Actors. Examples of stackable traits are included, and add logging, metrics, etc.
Actor classes that mix in this trait should define a wrappedReceive partial function instead of the standard receive.
Messages not handled by wrappedReceive will go, as usual, to unhandled().
trait MyActorTrait extends ActorStack { override def receive: Receive = { case x => println("Before calling wrappedReceive... do something") super.receive(x) println("After calling wrappedReceive... do something else") } }
Base class that includes Slf4jLogging and ActorMetrics for convenience
Trait that adds Logback/SLF4J logging to actors.
Trait that adds Logback/SLF4J logging to actors. It adds the following members:
* logger
It also prints a message upon actor initialization. Also, it fills the akkaSource MDC variable with the current actor's path, making for easier log tracing of a single actor's messages.
ActorMetrics is a trait that provides the following metrics: * message-handler.meter.{mean,m1,m5,m15} = moving avg of rate at which receive handler is called * message-handler.duration.{mean,p75,p99,p999} = histogram of wrappedReeive() running time
NOTE: the number of incoming messages can be tracked using meter.count.