monitor

package
v0.0.0-...-e0091a7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TSSMonitorService

type TSSMonitorService struct {
	Client sdpMonitor.MonitorClient
	sdpMonitor.MonitorServiceInterface
	GitCommitHash string
	Version       string
}

TSSMonitorService wraps the generic monitoring service from the SDP and provides additional monitoring capability for tracking payments that are processed by the TSS.

func (*TSSMonitorService) GetMetricHttpHandler

func (ms *TSSMonitorService) GetMetricHttpHandler() (http.Handler, error)

func (*TSSMonitorService) LogAndMonitorTransaction

func (ms *TSSMonitorService) LogAndMonitorTransaction(ctx context.Context, tx store.Transaction, metricTag sdpMonitor.MetricTag, txMetadata TxMetadata)

LogAndMonitorTransaction sends a metric about a payment tx to the observer, and logs the event and some additional data. The event and the log can be correlated through the event_id field.

func (*TSSMonitorService) MonitorCounters

func (ms *TSSMonitorService) MonitorCounters(metricTag sdpMonitor.MetricTag, labels map[string]string) error

func (*TSSMonitorService) Start

type TxMetadata

type TxMetadata struct {
	EventID          string
	SrcChannelAcc    string
	PaymentEventType string
	IsHorizonErr     bool   // TODO: remove
	ErrStack         string // TODO: remove

}

Jump to

Keyboard shortcuts

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