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

grpc example #107

Open
fi0 opened this issue Mar 17, 2019 · 1 comment
Open

grpc example #107

fi0 opened this issue Mar 17, 2019 · 1 comment
Labels
feature request Request for a new feature scheduled Work is starting on this feature/bug

Comments

@fi0
Copy link

fi0 commented Mar 17, 2019

No description provided.

@ushios
Copy link

ushios commented Aug 1, 2019

I created interceptor like below.

// BugsnagErrorInterceptor send error to bugsnag
func BugsnagErrorInterceptor() grpc.UnaryServerInterceptor {
	return grpc.UnaryServerInterceptor(func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
		resp, err := handler(ctx, req)
		if err != nil {
			bugsnag.Notify(err)
		}

		return resp, err
	})
}

@abigailbramble abigailbramble added feature request Request for a new feature scheduled Work is starting on this feature/bug labels Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for a new feature scheduled Work is starting on this feature/bug
Projects
None yet
Development

No branches or pull requests

3 participants