agent

package
v0.0.0-...-c7fc585 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(logger types.Logger, agentType string, agentVersion string) *Agent

func (*Agent) Shutdown

func (agent *Agent) Shutdown()

type Logger

type Logger struct {
	Logger *log.Logger
}

func (*Logger) Debugf

func (l *Logger) Debugf(_ context.Context, format string, v ...interface{})

func (*Logger) Errorf

func (l *Logger) Errorf(_ context.Context, format string, v ...interface{})

type MetricReporter

type MetricReporter struct {
	// contains filtered or unexported fields
}

MetricReporter is a metric reporter that collects Agent metrics and sends them to an OTLP/HTTP destination.

func NewMetricReporter

func NewMetricReporter(
	logger types.Logger,
	dest *protobufs.TelemetryConnectionSettings,
	agentType string,
	agentVersion string,
	instanceId ulid.ULID,
) (*MetricReporter, error)

func (*MetricReporter) Shutdown

func (reporter *MetricReporter) Shutdown()

Jump to

Keyboard shortcuts

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