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

Call otel.Handle with non-nil errors #1384

Merged
merged 3 commits into from
Dec 11, 2020

Conversation

krnowak
Copy link
Member

@krnowak krnowak commented Dec 7, 2020

That's what normally happens in other call sites. Those two didn't
check it, but passed the "error" to Handle. The default, delegating
implementation of ErrorHandler was printing the error unconditionally,
which resulted in pointless lines like 2020/12/07 19:51:28 <nil> in
demos, for example.

That's what normally happens in other call sites. Those two didn't
check it, but passed the "error" to Handle. The default, delegating
implementation of ErrorHandler was printing the error unconditionally,
which resulted in pointless lines like `2020/12/07 19:51:28 <nil>` in
demos, for example.
@codecov
Copy link

codecov bot commented Dec 7, 2020

Codecov Report

Merging #1384 (a5e14e4) into master (c3c4273) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1384   +/-   ##
======================================
  Coverage    77.9%   78.0%           
======================================
  Files         123     123           
  Lines        6252    6252           
======================================
+ Hits         4875    4879    +4     
+ Misses       1128    1125    -3     
+ Partials      249     248    -1     
Impacted Files Coverage Δ
sdk/trace/provider.go 94.5% <100.0%> (+2.1%) ⬆️
exporters/otlp/connection.go 85.3% <0.0%> (+1.8%) ⬆️

@krnowak
Copy link
Member Author

krnowak commented Dec 7, 2020

Skipping changelog entry. It's no big deal.

Copy link
Member

@XSAM XSAM left a comment

Choose a reason for hiding this comment

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

👍

@MrAlias MrAlias added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Dec 11, 2020
@MrAlias MrAlias merged commit af114ba into open-telemetry:master Dec 11, 2020
@krnowak krnowak deleted the handle-non-nil-err branch December 21, 2020 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants