agent

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector(c *config.Config) (*otelcol.Collector, error)

Types

type Agent

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

Agent represents the OpenTelemetry agent

func New

func New(cfg *config.Config, logger *zap.SugaredLogger) (*Agent, error)

New creates a new Agent instance

func (*Agent) Shutdown

func (a *Agent) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the agent

func (*Agent) StartAgent

func (a *Agent) StartAgent(ctx context.Context) error

StartAgent starts the agent

func (*Agent) StartCollector

func (a *Agent) StartCollector(ctx context.Context) error

func (*Agent) StopCollector

func (a *Agent) StopCollector()

func (*Agent) UpdateConfig

func (a *Agent) UpdateConfig(ctx context.Context, newConfig map[string]interface{}) error

Jump to

Keyboard shortcuts

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