Open rcmachado opened 4 years ago
Hi, I opened a draft pull request for this feature. Could someone please take a look? Any feedback would be appreciated. https://github.com/getsentry/sentry-go/pull/312
Any updates on this. Should be very useful for anyone working with Grpc. Not sure why the PR is still in review
Any update? x2 Still relevant
Hi, I've been using a solution for myself by integrating the Grpc Erro and status package with Sentry. I'm open to contribute it here but not sure if this issue is still active or not. I see an open PR which is not reviewed, is there any blocker?
@Glyphack We're slowly getting back to the Go SDK, and we'll take a look at adding integration for gRPC after #486 for sure
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog
or Status: In Progress
, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Any Update?
Any update? x3 Still relevant
Any update? x3 Still relevant
It'd be nice if you could just click the notifications to get updates, without posting a comment that emails everyone else uselessly. When there's nothing to add to the discussion there's no need to comment.
Anyway I have written this piece of code in the past based on Grpc status package: https://github.com/Glyphack/koal/blob/master/server/pkg/sentrygrpc/sentrygrpc.go
Summary
Provide gRPC interceptors to automatically capture errors and panics from servers and clients, both for unary and stream requests.
Motivation
gRPC is a high-performance, open source universal RPC framework originally developed by Google. It supports languages/platforms such as Python, Ruby, Kotlin and Go.
Go SDK already has some integrations with standard
net/http
package and some popular frameworks (like Gin, Martini and others).Similar to other frameworks, having standard Sentry integration will make it easier for users to integrate Sentry with gRPC.
Additional Context
gRPC has the concept of interceptor (middleware), which could make it easier to implement an official Sentry integration. An interceptor is a function with a specific signature/type:
Using an interceptor is also straightforward (pseudo-code):