ActorMonitor

kamon.instrumentation.pekko.instrumentations.ActorMonitor
See theActorMonitor companion object
trait ActorMonitor

Exposes the callbacks to be executed when an instrumented ActorCell is performing its duties. These callbacks apply to all Actors, regardless of them being "regular" actors or routees in a Router.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def captureEnvelopeContext(): Context

Captures the Context to be injected in Envelopes for targeting the monitored actor.

Captures the Context to be injected in Envelopes for targeting the monitored actor.

Attributes

Captures the timestamp to be injected in Envelopes for targeting the monitored actor.

Captures the timestamp to be injected in Envelopes for targeting the monitored actor.

Attributes

Captures the timestamp at the instant when message processing starts. The value captured here will be passed to the onMessageProcessingEnd method.

Captures the timestamp at the instant when message processing starts. The value captured here will be passed to the onMessageProcessingEnd method.

Attributes

def cleanup(): Unit

Callback executed when an Actor has been stopped and any state or resources related to it should be cleaned up.

Callback executed when an Actor has been stopped and any state or resources related to it should be cleaned up.

Attributes

def onDroppedMessages(count: Long): Unit

Callback executed when messages in the monitored Actor's mailbox need to be dropped.

Callback executed when messages in the monitored Actor's mailbox need to be dropped.

Attributes

def onFailure(failure: Throwable): Unit

Callback executed when an exception is thrown by the monitored Actor.

Callback executed when an exception is thrown by the monitored Actor.

Attributes

def onMessageProcessingEnd(context: Context, envelopeTimestamp: Long, processingStartTimestamp: Long, stateFromStart: Any): Unit

Callback executed when message processing has ended.

Callback executed when message processing has ended.

Attributes

def onMessageProcessingStart(context: Context, envelopeTimestamp: Long, envelope: Envelope): Any

Callback executed when message processing is about to start. Any value returned by this method will be used as the last parameter of the onMessageProcessingEnd method.

Callback executed when message processing is about to start. Any value returned by this method will be used as the last parameter of the onMessageProcessingEnd method.

Attributes

def onTerminationStart(): Unit

Callback executed when the actor is about to terminate.

Callback executed when the actor is about to terminate.

Attributes