opentelemetry

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: LGPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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