@@ -22,26 +22,26 @@ import (
2222 "go.opentelemetry.io/collector/config/configmodels"
2323)
2424
25- // ServiceExtension is the interface for objects hosted by the OpenTelemetry Collector that
25+ // Extension is the interface for objects hosted by the OpenTelemetry Collector that
2626// don't participate directly on data pipelines but provide some functionality
2727// to the service, examples: health check endpoint, z-pages, etc.
28- type ServiceExtension interface {
28+ type Extension interface {
2929 Component
3030}
3131
32- // PipelineWatcher is an extra interface for ServiceExtension hosted by the OpenTelemetry
32+ // PipelineWatcher is an extra interface for Extension hosted by the OpenTelemetry
3333// Collector that is to be implemented by extensions interested in changes to pipeline
3434// states. Typically this will be used by extensions that change their behavior if data is
3535// being ingested or not, e.g.: a k8s readiness probe.
3636type PipelineWatcher interface {
37- // Ready notifies the ServiceExtension that all pipelines were built and the
37+ // Ready notifies the Extension that all pipelines were built and the
3838 // receivers were started, i.e.: the service is ready to receive data
3939 // (notice that it may already have received data when this method is called).
4040 Ready () error
4141
42- // NotReady notifies the ServiceExtension that all receivers are about to be stopped,
42+ // NotReady notifies the Extension that all receivers are about to be stopped,
4343 // i.e.: pipeline receivers will not accept new data.
44- // This is sent before receivers are stopped, so the ServiceExtension can take any
44+ // This is sent before receivers are stopped, so the Extension can take any
4545 // appropriate action before that happens.
4646 NotReady () error
4747}
@@ -70,5 +70,5 @@ type ExtensionFactory interface {
7070 CreateDefaultConfig () configmodels.Extension
7171
7272 // CreateExtension creates a service extension based on the given config.
73- CreateExtension (ctx context.Context , params ExtensionCreateParams , cfg configmodels.Extension ) (ServiceExtension , error )
73+ CreateExtension (ctx context.Context , params ExtensionCreateParams , cfg configmodels.Extension ) (Extension , error )
7474}
0 commit comments