Skip to content

Conversation

@ollien
Copy link
Contributor

@ollien ollien commented Nov 7, 2025

Fixes #389

This PR adds the ability to filter which exceptions flow through the ReportException flow. Users can pass a module/function pair to the supervisor, which decides whether or not each exception should be logged. Of course, this allows them to filter on gRPC status codes, too, by simply pattern matching on %GRPC.RPCError{status: status}.

I'm certainly open to adjustments here!

@polvalente polvalente requested a review from sleipnir November 7, 2025 23:22
Copy link
Collaborator

@sleipnir sleipnir left a comment

Choose a reason for hiding this comment

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

I only have one question: is it possible to avoid that raise? Other than that, it's okay for me.

@polvalente polvalente merged commit e9a904d into elixir-grpc:master Nov 7, 2025
7 checks passed
@sleipnir
Copy link
Collaborator

@ollien we launch https://hex.pm/packages/grpc/0.11.5
Thank you for your contribution.

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.

Clarification on Handling Raised RPCErrors as Crash Events

3 participants