proposal: contrib/google.golang.org/grpc: add a WithErrorCheck
option
#2043
Labels
apm:ecosystem
contrib/* related feature requests or bugs
enhancement
quick change/addition that does not need full team approval
proposal/accepted
Accepted proposals
proposal
more in depth change that requires full team approval
Hello!
I would like to discuss the possibility of adding a
WithErrorCheck
option for gRPC.There are cases where an application produces errors, but they should not be sent to DataDog as errors. While the NonErrorCodes option allows for not treating specific gRPC status codes as errors, there are use cases where a more granular decision is needed based on the specific error, rather than just the status code.
The
WithErrorCheck
allows you to make decisions based on a combination of gRPC error codes and FullMethod in cases like this. Of course, it also allows you to freely set other conditions as needed.For example, a user might want to consider a NotFound error as non-error for a specific RPC.
I must apologize, as I have already created a PR for this feature before submitting this issue. I sincerely apologize for not following the proper procedure. If you are willing, I would greatly appreciate it if you could review the PR I have created.
The text was updated successfully, but these errors were encountered: