observability

package
v0.0.0-...-3378ddf Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: LGPL-3.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogger

func ConfigureLogger(l zerolog.Level, writers ...io.Writer)

ConfigureLogger configures logger level and assigns an array of writers for logger to write to

func InitMetricProvider

func InitMetricProvider(ctx context.Context, agentURL string) (*sdkmetric.MeterProvider, error)

Types

type RelayerMetrics

type RelayerMetrics struct {
	Opts api.MeasurementOption

	DepositEventCount        metric.Int64Counter
	MessageEventTime         map[string]time.Time
	ExecutionErrorCount      metric.Int64Counter
	ExecutionLatency         metric.Int64Histogram
	ExecutionLatencyPerRoute metric.Int64Histogram
	BlockDelta               metric.Int64ObservableGauge
	BlockDeltaMap            map[uint8]*big.Int
	// contains filtered or unexported fields
}

func NewRelayerMetrics

func NewRelayerMetrics(meter metric.Meter, attributes ...attribute.KeyValue) (*RelayerMetrics, error)

NewRelayerMetrics initializes OpenTelemetry metrics

func (*RelayerMetrics) TrackBlockDelta

func (t *RelayerMetrics) TrackBlockDelta(domainID uint8, head *big.Int, current *big.Int)

Jump to

Keyboard shortcuts

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