Documentation ¶
Overview ¶
Package service handles the command-line, configuration, and runs the OpenTelemetry Service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// AppTelemetry is application's own telemetry.
AppTelemetry = &appTelemetry{}
)
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
Application represents a collector application
func New ¶
func New( factories config.Factories, ) *Application
New creates and returns a new instance of Application
func (*Application) Context ¶
func (app *Application) Context() context.Context
Context returns a context provided by the host to be used on the receiver operations.
func (*Application) ReportFatalError ¶
func (app *Application) ReportFatalError(err error)
ReportFatalError is used to report to the host that the receiver encountered a fatal error (i.e.: an error that the instance can't recover from) after its start function has already returned.
func (*Application) StartUnified ¶
func (app *Application) StartUnified() error
StartUnified starts the unified service according to the command and configuration given by the user.
Click to show internal directories.
Click to hide internal directories.