| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package service // import "go.opentelemetry.io/collector/service" |
| 5 |
|
| 6 |
import ( |
| 7 |
"go.opentelemetry.io/collector/component" |
| 8 |
"go.opentelemetry.io/collector/service/extensions" |
| 9 |
"go.opentelemetry.io/collector/service/pipelines" |
| 10 |
) |
| 11 |
|
| 12 |
// Config defines the configurable components of the Service. |
| 13 |
type Config struct { |
| 14 |
// Telemetry is the configuration for collector's own telemetry. |
| 15 |
Telemetry component.Config `mapstructure:"telemetry"` |
| 16 |
|
| 17 |
// Extensions are the ordered list of extensions configured for the service. |
| 18 |
Extensions extensions.Config `mapstructure:"extensions,omitempty"` |
| 19 |
|
| 20 |
// Pipelines are the set of data pipelines configured for the service. |
| 21 |
Pipelines pipelines.Config `mapstructure:"pipelines"` |
| 22 |
|
| 23 |
// prevent unkeyed literal initialization |
| 24 |
_ struct{} |
| 25 |
} |