Skip to content
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

Allow adding new signals in ProcessorFactory by forcing everyone to embed BaseProcessorFactory #2885

Merged
merged 2 commits into from
Apr 2, 2021

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Apr 2, 2021

The reason to do this is to allow us to add factory methods for new signals in the future without breaking implementations.

Signed-off-by: Bogdan Drutu [email protected]

@bogdandrutu bogdandrutu requested a review from a team April 2, 2021 17:59
@codecov
Copy link

codecov bot commented Apr 2, 2021

Codecov Report

Merging #2885 (fac1521) into main (4dcd2b8) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2885   +/-   ##
=======================================
  Coverage   91.77%   91.77%           
=======================================
  Files         286      287    +1     
  Lines       15088    15094    +6     
=======================================
+ Hits        13847    13853    +6     
  Misses        849      849           
  Partials      392      392           
Impacted Files Coverage Δ
component/componenttest/nop_processor.go 100.00% <ø> (ø)
component/processor.go 100.00% <100.00%> (ø)
processor/processorhelper/factory.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4dcd2b8...fac1521. Read the comment docs.

…mbed BaseProcessorFactory

Signed-off-by: Bogdan Drutu <[email protected]>
component/processor.go Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu merged commit 4270875 into open-telemetry:main Apr 2, 2021
@bogdandrutu bogdandrutu deleted the hideextension branch April 2, 2021 21:23
pjanotti pushed a commit to pjanotti/opentelemetry-service that referenced this pull request Apr 6, 2021
…mbed BaseProcessorFactory (open-telemetry#2885)

* Allow adding new signals in ProcessorFactory by forcing everyone to embed BaseProcessorFactory

Signed-off-by: Bogdan Drutu <[email protected]>

* Update component/processor.go

Co-authored-by: Jay Camp <[email protected]>

Co-authored-by: Jay Camp <[email protected]>
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants