Documentation ¶
Overview ¶
Package service handles the command-line, configuration, and runs the OpenTelemetry Collector.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶ added in v0.29.0
type Collector struct {
// contains filtered or unexported fields
}
Collector represents a server providing the OpenTelemetry Collector service.
func New ¶
func New(set CollectorSettings) (*Collector, error)
New creates and returns a new instance of Collector.
func (*Collector) GetLogger ¶ added in v0.29.0
GetLogger returns logger used by the Collector. The logger is initialized after collector server start.
func (*Collector) GetStateChannel ¶ added in v0.29.0
GetStateChannel returns state channel of the collector server.
type CollectorSettings ¶ added in v0.29.0
type CollectorSettings struct { // Factories component factories. Factories component.Factories // BuildInfo provides collector start information. BuildInfo component.BuildInfo // DisableGracefulShutdown disables the automatic graceful shutdown // of the collector on SIGINT or SIGTERM. // Users who want to handle signals themselves can disable this behavior // and manually handle the signals to shutdown the collector. DisableGracefulShutdown bool // ParserProvider provides the configuration's Parser. // If it is not provided a default provider is used. The default provider loads the configuration // from a config file define by the --config command line flag and overrides component's configuration // properties supplied via --set command line flag. // If the provider is parserprovider.Watchable, collector // may reload the configuration upon error. ParserProvider parserprovider.ParserProvider // ConfigUnmarshaler unmarshalls the configuration's Parser into the service configuration. // If it is not provided a default unmarshaler is used. ConfigUnmarshaler configunmarshaler.ConfigUnmarshaler // LoggingOptions provides a way to change behavior of zap logging. LoggingOptions []zap.Option }
CollectorSettings holds configuration for creating a new Collector.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package defaultcomponents composes the default set of components used by the otel service
|
Package defaultcomponents composes the default set of components used by the otel service |
builder
Package builder handles the options to build the OpenTelemetry collector pipeline.
|
Package builder handles the options to build the OpenTelemetry collector pipeline. |
fanoutconsumer
Package fanoutconsumer contains implementations of Traces/Metrics/Logs consumers that fan out the data to multiple other consumers.
|
Package fanoutconsumer contains implementations of Traces/Metrics/Logs consumers that fan out the data to multiple other consumers. |
Click to show internal directories.
Click to hide internal directories.