internal

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(cfg config.MainConfig, isSupervisor bool) log.Logger

func NewOTLPClientFactory

func NewOTLPClientFactory(cc otlp.ClientConfig) otlp.StorageClientFactory

func NewTailer added in v0.22.0

func NewTailer(ctx context.Context, scfg SidecarConfig) (*tail.Tailer, error)

func StartComponents added in v0.22.0

func StartComponents(ctx context.Context, scfg SidecarConfig, tailer tail.WalTailer, startOffset int) error

func StartTelemetry

func StartTelemetry(scfg SidecarConfig, defaultSvcName string, isSuper bool) *telemetry.Telemetry

Types

type ShutdownFunc

type ShutdownFunc func(context.Context)

type SidecarConfig added in v0.22.0

type SidecarConfig struct {
	ClientFactory otlp.StorageClientFactory
	Monitor       *prometheus.Monitor
	Logger        log.Logger

	// InstanceId is a unique identifer for this process.
	InstanceId    string
	Matchers      [][]*labels.Matcher
	MetricRenames map[string]string
	MetadataCache *metadata.Cache

	FailingReporter common.FailingReporter

	config.MainConfig
}

Jump to

Keyboard shortcuts

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