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

Make all errors Box<dyn Error + Send + Sync + 'static> #284

Merged
merged 7 commits into from
Oct 18, 2020
Merged

Make all errors Box<dyn Error + Send + Sync + 'static> #284

merged 7 commits into from
Oct 18, 2020

Conversation

cpcloud
Copy link
Contributor

@cpcloud cpcloud commented Oct 18, 2020

This PR changes all errors to return Box<dyn Error + Send + Sync + 'static>
to be compatible with ecosystem crates and more generally to allow
errors to be moved to and shared across threads.

Closes #282.

@cpcloud cpcloud requested a review from a team as a code owner October 18, 2020 15:32
@frigus02
Copy link
Member

Looks like the examples need updating as well. Could you also update the example in the main README.md?

@cpcloud
Copy link
Contributor Author

cpcloud commented Oct 18, 2020

On it.

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.

I think the only README left are in opentelemetry-jaeger and opentelemetry-otel.

@jtescher
Copy link
Member

Thanks @cpcloud, this seems like an improvement as we work toward #286

@jtescher jtescher merged commit 86a0fdc into open-telemetry:master Oct 18, 2020
@cpcloud cpcloud deleted the send-sync-errors branch October 18, 2020 18:55
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.

APis return Box<dyn Error> which isn't compatibile with useful ecosystem crates
4 participants