Documentation ¶
Index ¶
- type TSSMonitorService
- func (ms *TSSMonitorService) GetMetricHttpHandler() (http.Handler, error)
- func (ms *TSSMonitorService) LogAndMonitorTransaction(ctx context.Context, tx store.Transaction, metricTag sdpMonitor.MetricTag, ...)
- func (ms *TSSMonitorService) MonitorCounters(metricTag sdpMonitor.MetricTag, labels map[string]string) error
- func (ms *TSSMonitorService) Start(opts sdpMonitor.MetricOptions) error
- type TxMetadata
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 ¶
func (ms *TSSMonitorService) Start(opts sdpMonitor.MetricOptions) error
Click to show internal directories.
Click to hide internal directories.