metric

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorMetric

type ActorMetric struct {
	// contains filtered or unexported fields
}

ActorMetric defines the actor instrumentation

func NewActorMetric

func NewActorMetric(meter metric.Meter) (*ActorMetric, error)

NewActorMetric creates an instance of ActorMetric

func (*ActorMetric) ChildrenCount

func (x *ActorMetric) ChildrenCount() metric.Int64ObservableCounter

ChildrenCount returns the total number of child actors

func (*ActorMetric) LastReceivedDuration

func (x *ActorMetric) LastReceivedDuration() metric.Float64Histogram

LastReceivedDuration returns the last message received duration latency in milliseconds

func (*ActorMetric) RestartCount

func (x *ActorMetric) RestartCount() metric.Int64ObservableCounter

RestartCount returns the total number of restart

func (*ActorMetric) SpawnCount

func (x *ActorMetric) SpawnCount() metric.Int64ObservableCounter

SpawnCount returns the total number of instances created for the given actor

func (*ActorMetric) StashCount

func (x *ActorMetric) StashCount() metric.Int64ObservableCounter

StashCount returns the total number of stashed messages

type ActorSystemMetric

type ActorSystemMetric struct {
	// contains filtered or unexported fields
}

ActorSystemMetric defines the actor system metrics

func NewActorSystemMetric

func NewActorSystemMetric(meter metric.Meter) (*ActorSystemMetric, error)

NewActorSystemMetric creates an instance of ActorSystemMetric

func (*ActorSystemMetric) ActorsCount

ActorsCount returns the total number of actors

func (*ActorSystemMetric) DeadletterCount

func (x *ActorSystemMetric) DeadletterCount() metric.Int64ObservableCounter

DeadletterCount returns the total number of deadletter

Jump to

Keyboard shortcuts

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