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
Click to show internal directories.
Click to hide internal directories.