metrics

package
v0.0.0-...-be88ffe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

func SetLogLevel(level log.Level)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL