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

Expose the Error type to allow users to set custom error handlers #551

Merged
merged 3 commits into from May 13, 2021

Conversation

LukeMathWalker
Copy link
Contributor

Expose the Error type in the global module to allow users to define their own error handlers.
This is currently impossible because Error is private and therefore users cannot provide a function that satisfies the constraints of set_error_handler.

…ne their own error handlers. This is currently impossible because `Error` is private and therefore users cannot provide a function that satisfies the constraints of `set_error_handler`.
@LukeMathWalker LukeMathWalker requested a review from a team as a code owner May 13, 2021 14:48
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.

Good catch. Thanks! Just a small suggestion on the comment

@codecov
Copy link

codecov bot commented May 13, 2021

Codecov Report

Merging #551 (80bb385) into main (133ab27) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##            main    #551   +/-   ##
=====================================
  Coverage   52.2%   52.2%           
=====================================
  Files         96      96           
  Lines       8506    8506           
=====================================
  Hits        4447    4447           
  Misses      4059    4059           
Impacted Files Coverage Δ
opentelemetry/src/global/error_handler.rs 44.4% <ø> (ø)

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 133ab27...80bb385. Read the comment docs.

@jtescher jtescher merged commit 88e779d into open-telemetry:main May 13, 2021
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

3 participants