TrackedActor

kamon.instrumentation.pekko.instrumentations.ActorMonitor.TrackedActor
class TrackedActor(actorMetrics: Option[ActorInstruments], groupMetrics: Seq[ActorGroupInstruments], cellInfo: ActorCellInfo) extends GroupMetricsTrackingActor

ActorMonitor that tracks Actor and/or Group metrics and performs Context propagation.

Attributes

Graph
Supertypes
trait ActorMonitor
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override 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

Definition Classes
override def captureEnvelopeTimestamp(): Long

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

Definition Classes
override 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

Definition Classes
override 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

Definition Classes
override 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

Definition Classes
override 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

Definition Classes

Inherited methods

override def captureProcessingStartTimestamp(): Long

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

Definition Classes
Inherited from:
GroupMetricsTrackingActor
override 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

Definition Classes
Inherited from:
GroupMetricsTrackingActor
override def onTerminationStart(): Unit

Callback executed when the actor is about to terminate.

Callback executed when the actor is about to terminate.

Attributes

Definition Classes
Inherited from:
GroupMetricsTrackingActor
protected def recordGroupMetrics(processingTime: Long, timeInMailbox: Long): Unit

Attributes

Inherited from:
GroupMetricsTrackingActor

Inherited fields

protected val clock: Clock

Attributes

Inherited from:
GroupMetricsTrackingActor

Attributes

Inherited from:
GroupMetricsTrackingActor