collector

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package collector presents an interface that wraps the OTel Collector Core

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSettings

func NewSettings(configPaths []string, version string, loggingOpts []zap.Option, factories otelcol.Factories) (*otelcol.CollectorSettings, error)

NewSettings returns new settings for the collector with default values.

func SetFeatureFlags

func SetFeatureFlags() error

SetFeatureFlags sets hardcoded collector feature flags

Types

type Collector

type Collector interface {
	Run(context.Context) error
	Stop(context.Context)
	Restart(context.Context) error
	SetLoggingOpts([]zap.Option)
	GetLoggingOpts() []zap.Option
	Status() <-chan *Status
}

Collector is an interface for running the open telemetry collector.

func New

func New(configPaths []string, version string, loggingOpts []zap.Option) (Collector, error)

New returns a new collector.

type Status

type Status struct {
	Running  bool
	Panicked bool
	Err      error
}

Status is the status of a collector.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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