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

Change ExportResult to std::result::Result #347

Merged
merged 3 commits into from
Nov 8, 2020

Conversation

frigus02
Copy link
Member

@frigus02 frigus02 commented Nov 6, 2020

The spec changed and ExportResult no longer includes the hint about error being retriable. Since it now only distinguishes between success and error, it makes sense to use Rust's standard Result type.

Closes #331

@codecov
Copy link

codecov bot commented Nov 6, 2020

Codecov Report

Merging #347 (7c1d709) into master (03fe982) will increase coverage by 0.11%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #347      +/-   ##
==========================================
+ Coverage   53.69%   53.81%   +0.11%     
==========================================
  Files          69       69              
  Lines        5790     5779      -11     
==========================================
+ Hits         3109     3110       +1     
+ Misses       2681     2669      -12     
Impacted Files Coverage Δ
opentelemetry-otlp/src/span.rs 2.67% <0.00%> (ø)
opentelemetry/src/api/trace/noop.rs 68.93% <0.00%> (ø)
opentelemetry/src/exporter/trace/mod.rs 70.27% <0.00%> (+9.09%) ⬆️
opentelemetry/src/exporter/trace/stdout.rs 28.57% <ø> (ø)
opentelemetry/src/sdk/trace/span_processor.rs 69.23% <0.00%> (ø)
...ntelemetry/src/sdk/metrics/aggregators/ddsketch.rs 78.59% <0.00%> (+0.18%) ⬆️

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 03fe982...7c1d709. Read the comment docs.

@frigus02 frigus02 force-pushed the update-exportresult branch from b552c7d to 4c03612 Compare November 6, 2020 21:16
The spec changed and ExportResult no longer includes the hint about
error being retriable. Since it now only distinguishes between success
and error, it makes sense to use Rust's standard Result type.
@frigus02 frigus02 force-pushed the update-exportresult branch from 4c03612 to b221a9d Compare November 6, 2020 21:33
@frigus02 frigus02 marked this pull request as ready for review November 6, 2020 21:34
@frigus02 frigus02 requested a review from a team November 6, 2020 21:34
Copy link
Member

@jtescher jtescher left a comment

Choose a reason for hiding this comment

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

Looks good

@jtescher
Copy link
Member

jtescher commented Nov 6, 2020

Also looks like the CLA bot is stuck again..

@frigus02 frigus02 force-pushed the update-exportresult branch from b221a9d to 5847d14 Compare November 6, 2020 22:03
@frigus02
Copy link
Member Author

frigus02 commented Nov 6, 2020

Hm yeah. How do we get it unstuck? Do we just wait?

@jtescher
Copy link
Member

jtescher commented Nov 6, 2020

Not sure why it stops working, but pushing an empty commit should trigger it (when it starts working again?)

@frigus02
Copy link
Member Author

frigus02 commented Nov 6, 2020

Cool. I push another commit tomorrow 🤞

@frigus02 frigus02 force-pushed the update-exportresult branch from fb279c7 to 7c1d709 Compare November 7, 2020 20:33
@jtescher jtescher merged commit fd8cf65 into open-telemetry:master Nov 8, 2020
@frigus02 frigus02 deleted the update-exportresult branch February 26, 2021 13:12
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.

Update ExportResult: use std::result::Result type
2 participants