123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- // Code generated by "go.opentelemetry.io/collector/cmd/builder". DO NOT EDIT.
- package main
- import (
- "go.opentelemetry.io/collector/connector"
- "go.opentelemetry.io/collector/exporter"
- debugexporter "go.opentelemetry.io/collector/exporter/debugexporter"
- loggingexporter "go.opentelemetry.io/collector/exporter/loggingexporter"
- otlpexporter "go.opentelemetry.io/collector/exporter/otlpexporter"
- otlphttpexporter "go.opentelemetry.io/collector/exporter/otlphttpexporter"
- "go.opentelemetry.io/collector/extension"
- ballastextension "go.opentelemetry.io/collector/extension/ballastextension"
- zpagesextension "go.opentelemetry.io/collector/extension/zpagesextension"
- "go.opentelemetry.io/collector/otelcol"
- "go.opentelemetry.io/collector/processor"
- batchprocessor "go.opentelemetry.io/collector/processor/batchprocessor"
- memorylimiterprocessor "go.opentelemetry.io/collector/processor/memorylimiterprocessor"
- "go.opentelemetry.io/collector/receiver"
- otlpreceiver "go.opentelemetry.io/collector/receiver/otlpreceiver"
- carbonexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/carbonexporter"
- opencensusexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter"
- opensearchexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter"
- prometheusexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter"
- sapmexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sapmexporter"
- signalfxexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter"
- splunkhecexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter"
- syslogexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/syslogexporter"
- zipkinexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter"
- pprofextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension"
- filestorage "github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage"
- attributesprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor"
- resourceprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor"
- carbonreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/carbonreceiver"
- filelogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver"
- fluentforwardreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/fluentforwardreceiver"
- jaegerreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jaegerreceiver"
- opencensusreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver"
- prometheusreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver"
- sapmreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sapmreceiver"
- signalfxreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/signalfxreceiver"
- splunkhecreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/splunkhecreceiver"
- syslogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver"
- tcplogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/tcplogreceiver"
- udplogreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/udplogreceiver"
- zipkinreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver"
- )
- func components() (otelcol.Factories, error) {
- var err error
- factories := otelcol.Factories{}
- factories.Extensions, err = extension.MakeFactoryMap(
- ballastextension.NewFactory(),
- zpagesextension.NewFactory(),
- pprofextension.NewFactory(),
- filestorage.NewFactory(),
- )
- if err != nil {
- return otelcol.Factories{}, err
- }
- factories.Receivers, err = receiver.MakeFactoryMap(
- otlpreceiver.NewFactory(),
- carbonreceiver.NewFactory(),
- filelogreceiver.NewFactory(),
- fluentforwardreceiver.NewFactory(),
- jaegerreceiver.NewFactory(),
- opencensusreceiver.NewFactory(),
- prometheusreceiver.NewFactory(),
- sapmreceiver.NewFactory(),
- signalfxreceiver.NewFactory(),
- splunkhecreceiver.NewFactory(),
- syslogreceiver.NewFactory(),
- tcplogreceiver.NewFactory(),
- udplogreceiver.NewFactory(),
- zipkinreceiver.NewFactory(),
- )
- if err != nil {
- return otelcol.Factories{}, err
- }
- factories.Exporters, err = exporter.MakeFactoryMap(
- debugexporter.NewFactory(),
- loggingexporter.NewFactory(),
- otlpexporter.NewFactory(),
- otlphttpexporter.NewFactory(),
- carbonexporter.NewFactory(),
- opencensusexporter.NewFactory(),
- opensearchexporter.NewFactory(),
- prometheusexporter.NewFactory(),
- sapmexporter.NewFactory(),
- signalfxexporter.NewFactory(),
- splunkhecexporter.NewFactory(),
- syslogexporter.NewFactory(),
- zipkinexporter.NewFactory(),
- )
- if err != nil {
- return otelcol.Factories{}, err
- }
- factories.Processors, err = processor.MakeFactoryMap(
- batchprocessor.NewFactory(),
- memorylimiterprocessor.NewFactory(),
- attributesprocessor.NewFactory(),
- resourceprocessor.NewFactory(),
- )
- if err != nil {
- return otelcol.Factories{}, err
- }
- factories.Connectors, err = connector.MakeFactoryMap()
- if err != nil {
- return otelcol.Factories{}, err
- }
- return factories, nil
- }
|