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

Do not wrap error if multierror does not have one. #3772

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

MadVikingGod
Copy link
Contributor

Fixes #3698

This is a potential solution to #3698. The problem is there are two places where we don't provide a wrapped error when creating a multierror. This just omits wrapping an error in cases where there isn't one to wrap.

An alternative solution is to provide an error in all uses of multierror.

@codecov
Copy link

codecov bot commented Feb 24, 2023

Codecov Report

Merging #3772 (d50a531) into main (01bbea3) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3772   +/-   ##
=====================================
  Coverage   81.6%   81.7%           
=====================================
  Files        167     167           
  Lines      12459   12462    +3     
=====================================
+ Hits       10179   10186    +7     
+ Misses      2065    2061    -4     
  Partials     215     215           
Impacted Files Coverage Δ
sdk/metric/pipeline.go 90.6% <100.0%> (+<0.1%) ⬆️
sdk/trace/batch_span_processor.go 81.9% <0.0%> (+1.7%) ⬆️

@dashpole
Copy link
Contributor

I prefer this approach

@MadVikingGod MadVikingGod merged commit 17e5d0f into open-telemetry:main Feb 27, 2023
@MadVikingGod MadVikingGod deleted the mvg/fix-multierror branch July 18, 2023 14:27
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.

Confusing error messages with metric multierror type if wrapped is unset
3 participants