opentelemetry

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainbridgeMetrics

type ChainbridgeMetrics struct {
	DepositEventCount metric.Int64Counter

	HeadBlocks  map[uint8]metric.Int64GaugeObserver
	StartBlocks map[uint8]metric.Int64GaugeObserver
	// contains filtered or unexported fields
}

func NewChainbridgeMetrics

func NewChainbridgeMetrics(meter metric.Meter) *ChainbridgeMetrics

NewChainbridgeMetrics creates an instance of ChainbridgeMetrics with provided OpenTelemetry meter

type ConsoleTelemetry

type ConsoleTelemetry struct{}

ConsoleTelemetry is telemetry that logs metrics and should be used when metrics sending to OpenTelemetry should be disabled

func (*ConsoleTelemetry) TrackDepositMessage

func (t *ConsoleTelemetry) TrackDepositMessage(m *message.Message)

type OpenTelemetry

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

func NewOpenTelemetry

func NewOpenTelemetry(collectorRawURL string) (*OpenTelemetry, error)

NewOpenTelemetry initializes OpenTelementry metrics

func (*OpenTelemetry) MonitorHeadBlocks

func (t *OpenTelemetry) MonitorHeadBlocks(chains []relayer.RelayedChain)

func (*OpenTelemetry) MonitorSyncBlocks

func (t *OpenTelemetry) MonitorSyncBlocks(chains []relayer.RelayedChain)

func (*OpenTelemetry) TrackDepositMessage

func (t *OpenTelemetry) TrackDepositMessage(m *message.Message)

TrackDepositMessage extracts metrics from deposit message and sends them to OpenTelemetry collector

func (*OpenTelemetry) TrackHeadBlock

func (t *OpenTelemetry) TrackHeadBlock(id uint8, value int64, fromAddr string)

func (*OpenTelemetry) TrackSyncBlock

func (t *OpenTelemetry) TrackSyncBlock(id uint8, value int64, fromAddr string)

Jump to

Keyboard shortcuts

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