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 AppSettings ¶ added in v0.28.0
type AppSettings struct { // Factories component factories. Factories component.Factories // BuildInfo provides application start information. BuildInfo component.BuildInfo // 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. ParserProvider parserprovider.ParserProvider // LoggingOptions provides a way to change behavior of zap logging. LoggingOptions []zap.Option }
AppSettings holds configuration for creating a new Application.
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application represents a collector application
func New ¶
func New(set AppSettings) (*Application, error)
New creates and returns a new instance of Application.
func (*Application) Command ¶
func (app *Application) Command() *cobra.Command
Command returns Application's root command.
func (*Application) GetLogger ¶
func (app *Application) GetLogger() *zap.Logger
GetLogger returns logger used by the Application. The logger is initialized after application start.
func (*Application) GetStateChannel ¶
func (app *Application) GetStateChannel() chan State
GetStateChannel returns state channel of the application.
func (*Application) Run ¶ added in v0.11.0
func (app *Application) Run() error
Run starts the collector according to the command and configuration given by the user, and waits for it to complete.
func (*Application) Shutdown ¶ added in v0.17.0
func (app *Application) Shutdown()
Shutdown shuts down the application.
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 |
internal
|
|
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.