Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BIwashi committed Jun 12, 2023
1 parent 6a8cac1 commit 057eaab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/google.golang.org/grpc/option.go
Expand Up @@ -119,7 +119,7 @@ func NonErrorCodes(cs ...codes.Code) InterceptorOption {

// NonErrorFunc sets a custom function to determine whether an error should not be considered as an error for tracing purposes.
// This function is evaluated when an error occurs, and if it returns true, the error will not be recorded in the trace.
// f: A function that takes an error as an argument and returns a boolean indicating whether the error should be ignored.
// f: A function taking the gRPC method and error as arguments, returning a boolean to indicate if the error should be ignored.
func NonErrorFunc(f func(method string, err error) bool) InterceptorOption {
return func(cfg *config) {
cfg.nonErrorFunc = f
Expand Down

0 comments on commit 057eaab

Please sign in to comment.