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

Move CombineErrors to consumererror package #2442

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Feb 7, 2021

Fixes #2472

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

@bogdandrutu bogdandrutu requested a review from a team February 7, 2021 17:25
@codecov
Copy link

codecov bot commented Feb 7, 2021

Codecov Report

Merging #2442 (4e74d79) into main (9de6dd7) will decrease coverage by 0.00%.
The diff coverage is 97.43%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2442      +/-   ##
==========================================
- Coverage   91.76%   91.76%   -0.01%     
==========================================
  Files         265      266       +1     
  Lines       15111    15112       +1     
==========================================
  Hits        13867    13867              
- Misses        866      867       +1     
  Partials      378      378              
Impacted Files Coverage Δ
component/componenterror/errors.go 0.00% <0.00%> (-100.00%) ⬇️
config/configcheck/configcheck.go 100.00% <100.00%> (ø)
consumer/consumererror/combineerrors.go 100.00% <100.00%> (ø)
exporter/kafkaexporter/jaeger_marshaller.go 85.71% <100.00%> (ø)
exporter/prometheusremotewriteexporter/exporter.go 89.26% <100.00%> (ø)
processor/cloningfanoutconnector.go 57.57% <100.00%> (ø)
processor/fanoutconnector.go 100.00% <100.00%> (ø)
receiver/jaegerreceiver/trace_receiver.go 75.49% <100.00%> (ø)
receiver/scraperhelper/errors.go 100.00% <100.00%> (ø)
receiver/scraperhelper/scrapercontroller.go 98.85% <100.00%> (ø)
... and 7 more

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 9de6dd7...4e74d79. Read the comment docs.

Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an issue tracking this change? What's the idea behind it? I particularly find componenterror more intuitive than consumererror, but I might be missing some context here.

receiver/jaegerreceiver/trace_receiver.go Show resolved Hide resolved
@bogdandrutu
Copy link
Member Author

A Component is a Consumer + few extra functions. The part of the component that uses this it the Consumer, and there are other pure Consumers which use this.

@bogdandrutu
Copy link
Member Author

@jpkrohling good point on the issue. I will open one explaining why some errors should be consumer some should be component. We don't have a clear logic

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu
Copy link
Member Author

Issue created.

Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would help to prepare in advance a diagram of dependencies that we want to end up with to make reviewing PRs like this easier. I have a hard time keeping the desired picture in my mind.

@bogdandrutu bogdandrutu merged commit 5cc0707 into open-telemetry:main Feb 12, 2021
@bogdandrutu bogdandrutu deleted the mvcombineerrors branch February 12, 2021 23:13
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
Smart Agent v5.27.1 has been updated to resolve a dependency vulnerability. This brings in that update in preparation for the Splunk Collector v0.68.0 release.
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.

CombineErrors is a helper function used by Consumers
4 participants