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

SpanProcessor - rethrow a composite failure on multiple errors #386

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

iRevive
Copy link
Contributor

@iRevive iRevive commented Nov 27, 2023

Follow up #374 (comment)

@iRevive iRevive force-pushed the sdk-trace/span-processor-update branch from 5aef86d to 92463d7 Compare November 27, 2023 08:55
@iRevive iRevive force-pushed the sdk-trace/span-processor-update branch from 92463d7 to b57c2da Compare November 27, 2023 09:16
* the error occurred
*/
final case class ProcessorFailure(processor: String, failure: Throwable)
extends Throwable(
Copy link
Member

Choose a reason for hiding this comment

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

should it extend RuntimeException or even just Exception?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It can extend Exception

@iRevive iRevive requested a review from armanbilge November 28, 2023 08:19
.parTraverse { p =>
p.onStart(parentCtx, span).attempt.tupleLeft(p.name)
}
.flatMap(attempts => handleAttempts(attempts))
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a bit nitpicky (also below), but

Suggested change
.flatMap(attempts => handleAttempts(attempts))
.flatMap(handleAttempts)

@iRevive iRevive merged commit 5397cd4 into typelevel:main Nov 30, 2023
@iRevive iRevive deleted the sdk-trace/span-processor-update branch November 30, 2023 18:48
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.

3 participants