@@ -23,24 +23,24 @@ import (
23
23
"github.com/open-telemetry/opentelemetry-service/processor"
24
24
)
25
25
26
- var _ = processor .RegisterProcessorFactory ( & processorFactory {})
26
+ var _ = processor .RegisterFactory ( & factory {})
27
27
28
28
const (
29
29
// The value of "type" key in configuration.
30
30
typeStr = "batch"
31
31
)
32
32
33
- // processorFactory is the factory for batch processor.
34
- type processorFactory struct {
33
+ // factory is the factory for batch processor.
34
+ type factory struct {
35
35
}
36
36
37
37
// Type gets the type of the config created by this factory.
38
- func (f * processorFactory ) Type () string {
38
+ func (f * factory ) Type () string {
39
39
return typeStr
40
40
}
41
41
42
42
// CreateDefaultConfig creates the default configuration for processor.
43
- func (f * processorFactory ) CreateDefaultConfig () models.Processor {
43
+ func (f * factory ) CreateDefaultConfig () models.Processor {
44
44
removeAfterTicks := int (defaultRemoveAfterCycles )
45
45
sendBatchSize := int (defaultSendBatchSize )
46
46
tickTime := defaultTickTime
@@ -60,7 +60,7 @@ func (f *processorFactory) CreateDefaultConfig() models.Processor {
60
60
}
61
61
62
62
// CreateTraceProcessor creates a trace processor based on this config.
63
- func (f * processorFactory ) CreateTraceProcessor (
63
+ func (f * factory ) CreateTraceProcessor (
64
64
logger * zap.Logger ,
65
65
nextConsumer consumer.TraceConsumer ,
66
66
c models.Processor ,
@@ -96,7 +96,7 @@ func (f *processorFactory) CreateTraceProcessor(
96
96
}
97
97
98
98
// CreateMetricsProcessor creates a metrics processor based on this config.
99
- func (f * processorFactory ) CreateMetricsProcessor (
99
+ func (f * factory ) CreateMetricsProcessor (
100
100
logger * zap.Logger ,
101
101
nextConsumer consumer.MetricsConsumer ,
102
102
cfg models.Processor ,
0 commit comments