Documentation ¶
Index ¶
Constants ¶
View Source
const InternalActorMetrics string = "internal.actor.metrics"
View Source
const LibName string = "protoactor"
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
SetLogLevel sets the log level for the logger.
SetLogLevel is safe to call concurrently
Types ¶
type ActorMetrics ¶
type ActorMetrics struct { // MetricsID ID string // Actors ActorFailureCount asyncint64.Counter ActorMailboxLength asyncint64.Gauge ActorMessageReceiveHistogram syncfloat64.Histogram ActorRestartedCount asyncint64.Counter ActorSpawnCount asyncint64.Counter ActorStoppedCount asyncint64.Counter // Deadletters DeadLetterCount asyncint64.Counter FuturesCompletedCount asyncint64.Counter // Futures FuturesStartedCount asyncint64.Counter FuturesTimedOutCount asyncint64.Counter // Threadpool ThreadPoolLatency syncint64.Histogram // contains filtered or unexported fields }
func NewActorMetrics ¶
func NewActorMetrics() *ActorMetrics
NewActorMetrics creates a new ActorMetrics value and returns a pointer to it
func (*ActorMetrics) SetActorMailboxLengthGauge ¶
func (am *ActorMetrics) SetActorMailboxLengthGauge(gauge asyncint64.Gauge)
SetActorMailboxLengthGauge makes sure access to ActorMailboxLength is sequenced
type ProtoMetrics ¶
type ProtoMetrics struct {
// contains filtered or unexported fields
}
func NewProtoMetrics ¶
func NewProtoMetrics(provider metric.MeterProvider) *ProtoMetrics
func (*ProtoMetrics) Get ¶
func (pm *ProtoMetrics) Get(key string) *ActorMetrics
func (*ProtoMetrics) Instruments ¶
func (pm *ProtoMetrics) Instruments() *ActorMetrics
func (*ProtoMetrics) Register ¶
func (pm *ProtoMetrics) Register(key string, instance *ActorMetrics)
Click to show internal directories.
Click to hide internal directories.