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

api: make TraceStateError priviate #755

Merged
merged 1 commit into from Mar 12, 2022

Conversation

jtescher
Copy link
Member

This change simplifies the error handling in the trace module by making TraceStateError private, and exposing these errors as the more general TraceError.

@jtescher jtescher requested a review from a team as a code owner March 12, 2022 17:26
This change simplifies the error handling in the `trace` module by
making `TraceStateError` private, and exposing these errors as the more
general `TraceError`.
@codecov
Copy link

codecov bot commented Mar 12, 2022

Codecov Report

Merging #755 (424be37) into main (027c1f8) will decrease coverage by 0.01%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #755      +/-   ##
==========================================
- Coverage   70.22%   70.21%   -0.02%     
==========================================
  Files         108      108              
  Lines        8804     8807       +3     
==========================================
+ Hits         6183     6184       +1     
- Misses       2621     2623       +2     
Impacted Files Coverage Δ
opentelemetry-api/src/trace/mod.rs 76.78% <ø> (ø)
opentelemetry-api/src/trace/span_context.rs 88.42% <25.00%> (-0.95%) ⬇️
opentelemetry-sdk/src/metrics/controllers/push.rs 83.33% <0.00%> (+3.33%) ⬆️

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 027c1f8...424be37. Read the comment docs.

Copy link
Contributor

@TommyCpp TommyCpp 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. I wonder should we add some more standard attributes to those errors to make the logs looks more structured?

@jtescher
Copy link
Member Author

Sure, could do in a follow up.

@jtescher jtescher merged commit ce6113d into open-telemetry:main Mar 12, 2022
@jtescher jtescher deleted the remove-trace-state-error branch March 12, 2022 23:25
vibhavp pushed a commit to vibhavp/opentelemetry-rust that referenced this pull request Mar 14, 2022
This change simplifies the error handling in the `trace` module by
making `TraceStateError` private, and exposing these errors as the more
general `TraceError`.
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.

None yet

2 participants