instrumented

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInstrumentedSinkServer added in v1.0.0

func NewInstrumentedSinkServer(factory proximo.AsyncSinkFactory, debug bool) proto.MessageSinkServer

NewInstrumentedSinkServer returns a message sink server with error metrics.

func NewInstrumentedSourceServer added in v1.0.0

func NewInstrumentedSourceServer(factory proximo.AsyncSourceFactory, debug bool) proto.MessageSourceServer

NewInstrumentedSourceServer returns a message source server with error metrics.

Types

type AsyncSinkFactory

type AsyncSinkFactory struct {
	BackendStatusChecker BackendStatusChecker
	CounterOpts          prometheus.CounterOpts
	SinkFactory          proximo.AsyncSinkFactory
}

AsyncSinkFactory adds metrics and health check to every new sink.

func (AsyncSinkFactory) NewAsyncSink

type AsyncSourceFactory

type AsyncSourceFactory struct {
	BackendStatusChecker BackendStatusChecker
	CounterOpts          prometheus.CounterOpts
	SourceFactory        proximo.AsyncSourceFactory
}

AsyncSourceFactory adds metrics and health check to every new sink.

func (AsyncSourceFactory) NewAsyncSource

type BackendStatusChecker added in v1.0.0

type BackendStatusChecker interface {
	CheckStatus(resp *op.CheckResponse)

	RemoveStatuser(id string)
	RegisterStatuser(id string, conn substrate.Statuser, cancel func())
}

BackendStatusChecker is an interface that check status of substrate connections.

func NewBackendStatusChecker added in v1.0.0

func NewBackendStatusChecker(maxFailedCount int) BackendStatusChecker

NewBackendStatusChecker returns a new instance of BackendStatusChecker.

Jump to

Keyboard shortcuts

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