-
Notifications
You must be signed in to change notification settings - Fork 0
/
components.go
57 lines (49 loc) · 1.81 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
// Code generated by "go.opentelemetry.io/collector/cmd/builder". DO NOT EDIT.
package fsmbatch
import (
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/extension"
"go.opentelemetry.io/collector/receiver"
splunkhecexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter"
kafkaexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter"
zipkinexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter"
instanaexporter "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/instanaexporter"
loggingexporter "go.opentelemetry.io/collector/exporter/loggingexporter"
otlpexporter "go.opentelemetry.io/collector/exporter/otlpexporter"
batchprocessor "go.opentelemetry.io/collector/processor/batchprocessor"
skywalkingreceiver "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/skywalkingreceiver"
)
func components() (component.Factories, error) {
var err error
factories := component.Factories{}
factories.Extensions, err = extension.MakeFactoryMap(
)
if err != nil {
return component.Factories{}, err
}
factories.Receivers, err = receiver.MakeFactoryMap(
skywalkingreceiver.NewFactory(),
)
if err != nil {
return component.Factories{}, err
}
factories.Exporters, err = exporter.MakeFactoryMap(
splunkhecexporter.NewFactory(),
kafkaexporter.NewFactory(),
zipkinexporter.NewFactory(),
instanaexporter.NewFactory(),
loggingexporter.NewFactory(),
otlpexporter.NewFactory(),
)
if err != nil {
return component.Factories{}, err
}
factories.Processors, err = component.MakeProcessorFactoryMap(
batchprocessor.NewFactory(),
)
if err != nil {
return component.Factories{}, err
}
return factories, nil
}