opentelemetry

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: LGPL-3.0 Imports: 12 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
}

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) TrackDepositMessage

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

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

Jump to

Keyboard shortcuts

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