-
Notifications
You must be signed in to change notification settings - Fork 0
/
components.go
94 lines (86 loc) · 4.33 KB
/
components.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Code generated by "go.opentelemetry.io/collector/cmd/builder". DO NOT EDIT.
package main
import (
"go.opentelemetry.io/collector/component"
loggingexporter "go.opentelemetry.io/collector/exporter/loggingexporter"
otlpexporter "go.opentelemetry.io/collector/exporter/otlpexporter"
otlphttpexporter "go.opentelemetry.io/collector/exporter/otlphttpexporter"
fileexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter"
jaegerexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerexporter"
kafkaexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter"
opencensusexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter"
prometheusexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter"
prometheusremotewriteexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter"
zipkinexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter"
zpagesextension "go.opentelemetry.io/collector/extension/zpagesextension"
ballastextension "go.opentelemetry.io/collector/extension/ballastextension"
healthcheckextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/healthcheckextension"
pprofextension "github.com/open-telemetry/opentelemetry-collector-contrib/extension/pprofextension"
batchprocessor "go.opentelemetry.io/collector/processor/batchprocessor"
memorylimiterprocessor "go.opentelemetry.io/collector/processor/memorylimiterprocessor"
attributesprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor"
resourceprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourceprocessor"
spanprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/spanprocessor"
probabilisticsamplerprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/probabilisticsamplerprocessor"
filterprocessor "github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor"
otlpreceiver "go.opentelemetry.io/collector/receiver/otlpreceiver"
hostmetricsreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver"
jaegerreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jaegerreceiver"
kafkareceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kafkareceiver"
opencensusreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver"
prometheusreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/prometheusreceiver"
zipkinreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver"
)
func components() (component.Factories, error) {
var err error
factories := component.Factories{}
factories.Extensions, err = component.MakeExtensionFactoryMap(
zpagesextension.NewFactory(),
ballastextension.NewFactory(),
healthcheckextension.NewFactory(),
pprofextension.NewFactory(),
)
if err != nil {
return component.Factories{}, err
}
factories.Receivers, err = component.MakeReceiverFactoryMap(
otlpreceiver.NewFactory(),
hostmetricsreceiver.NewFactory(),
jaegerreceiver.NewFactory(),
kafkareceiver.NewFactory(),
opencensusreceiver.NewFactory(),
prometheusreceiver.NewFactory(),
zipkinreceiver.NewFactory(),
)
if err != nil {
return component.Factories{}, err
}
factories.Exporters, err = component.MakeExporterFactoryMap(
loggingexporter.NewFactory(),
otlpexporter.NewFactory(),
otlphttpexporter.NewFactory(),
fileexporter.NewFactory(),
jaegerexporter.NewFactory(),
kafkaexporter.NewFactory(),
opencensusexporter.NewFactory(),
prometheusexporter.NewFactory(),
prometheusremotewriteexporter.NewFactory(),
zipkinexporter.NewFactory(),
)
if err != nil {
return component.Factories{}, err
}
factories.Processors, err = component.MakeProcessorFactoryMap(
batchprocessor.NewFactory(),
memorylimiterprocessor.NewFactory(),
attributesprocessor.NewFactory(),
resourceprocessor.NewFactory(),
spanprocessor.NewFactory(),
probabilisticsamplerprocessor.NewFactory(),
filterprocessor.NewFactory(),
)
if err != nil {
return component.Factories{}, err
}
return factories, nil
}