-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add factory and new-style config for Batch processor #53
Add factory and new-style config for Batch processor #53
Conversation
@@ -69,6 +69,7 @@ type Exporters map[string]Exporter | |||
// Processor is the configuration of a processor. Specific processors must implement this | |||
// interface and will typically embed ProcessorSettings struct or a struct that extends it. | |||
type Processor interface { | |||
NamedEntity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetName() is called in internal/configv2/configv2.go. The name is used in internal/collector/processor/nodebatcher/factory.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks for clarifying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
f682219
to
d929593
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The usual minor nit.
d929593
to
251dae3
Compare
Codecov Report
@@ Coverage Diff @@
## master #53 +/- ##
=========================================
- Coverage 69.43% 69.3% -0.14%
=========================================
Files 85 85
Lines 5558 5567 +9
=========================================
- Hits 3859 3858 -1
- Misses 1480 1489 +9
- Partials 219 220 +1
Continue to review full report at Codecov.
|
This is part of remaining migration to new configuration format. - Added zap.Logger to ProcessorFactory functions because it is needed by this processor (and can be used if needed in other processors in the future). - Added Name/SetName to Processor interface because it is needed by this processor (this now also makes Processor uniform with Receiver and Exporter interfaces). Github issue: open-telemetry#52 Testing done: make
eb207ba
to
fb146b9
Compare
This is part of remaining migration to new configuration format.
Added zap.Logger to ProcessorFactory functions because it is
needed by this processor (and can be used if needed in other processors
in the future).
Added Name/SetName to Processor interface because it is
needed by this processor (this now also makes Processor uniform with
Receiver and Exporter interfaces).
Github issue: #52
Testing done: make