Documentation ¶
Overview ¶
Package extension defines service extensions that can be added to the OpenTelemetry service but that not interact if the data pipelines, but provide some functionality to the service, examples: health check endpoint, z-pages, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory interface { // Type gets the type of the extension created by this factory. Type() string // CreateDefaultConfig creates the default configuration for the Extension. // This method can be called multiple times depending on the pipeline // configuration and should not cause side-effects that prevent the creation // of multiple instances of the Extension. // The object returned by this method needs to pass the checks implemented by // 'conifgcheck.ValidateConfig'. It is recommended to have such check in the // tests of any implementation of the Factory interface. CreateDefaultConfig() configmodels.Extension // CreateExtension creates a service extension based on the given config. CreateExtension(logger *zap.Logger, cfg configmodels.Extension) (ServiceExtension, error) }
Factory is a factory interface for extensions to the service.
type PipelineWatcher ¶
type PipelineWatcher interface { // Ready notifies the ServiceExtension that all pipelines were built and the // receivers were started, i.e.: the service is ready to receive data // (notice that it may already have received data when this method is called). Ready() error // NotReady notifies the ServiceExtension that all receivers are about to be stopped, // i.e.: pipeline receivers will not accept new data. // This is sent before receivers are stopped, so the ServiceExtension can take any // appropriate action before that happens. NotReady() error }
PipelineWatcher is an extra interface for ServiceExtension hosted by the OpenTelemetry Service that is to be implemented by extensions interested in changes to pipeline states. Typically this will be used by extensions that change their behavior if data is being ingested or not, e.g.: a k8s readiness probe.
type ServiceExtension ¶
ServiceExtension is the interface for objects hosted by the OpenTelemetry Collector that don't participate directly on data pipelines but provide some functionality to the service, examples: health check endpoint, z-pages, etc.
Directories ¶
Path | Synopsis |
---|---|
Package extensiontest define types and functions used to help test packages implementing the extension package interfaces.
|
Package extensiontest define types and functions used to help test packages implementing the extension package interfaces. |
Package healthcheckextension implements an extension that enables an HTTP endpoint that can be used to check the overall health and status of the service.
|
Package healthcheckextension implements an extension that enables an HTTP endpoint that can be used to check the overall health and status of the service. |
Package pprofextension implements an extension that exposes the golang net/http/pprof (Performance Profiler) in a HTTP endpoint.
|
Package pprofextension implements an extension that exposes the golang net/http/pprof (Performance Profiler) in a HTTP endpoint. |
Package zpagesextension implements an extension that exposes zPages of properly instrumented components.
|
Package zpagesextension implements an extension that exposes zPages of properly instrumented components. |