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 metric.Int64Counter ActorMailboxLength metric.Int64GaugeObserver ActorMessageReceiveHistogram metric.Float64Histogram ActorRestartedCount metric.Int64Counter ActorSpawnCount metric.Int64Counter ActorStoppedCount metric.Int64Counter // Deadletters DeadLetterCount metric.Int64Counter FuturesCompletedCount metric.Int64Counter // Futures FuturesStartedCount metric.Int64Counter FuturesTimedOutCount metric.Int64Counter // Threadpool ThreadPoolLatency metric.Int64Histogram // 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 metric.Int64GaugeObserver)
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.