Skip to content

Collects exceptions and errors from GRPC servers.

License

Notifications You must be signed in to change notification settings

renderedtext/sentry_grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentry.Grpc

Collects exceptions and errors from GRPC servers.

Installation

def deps do
  [
    {:sentry_grpc, github: "renderedtext/sentry_grpc"}
  ]
end

Setup

Inject a use Sentry.Grpc, service: <service> into your Grpc services to capture errors and exceptions.

Example for HelloWorld:

defmodule Helloworld.Greeter.Server do
  use GRPC.Server, service: Helloworld.Greeter.Service
  use Sentry.Grpc, service: Helloworld.Greeter.Service # < --- this line

  @spec say_hello(Helloworld.HelloRequest.t(), GRPC.Server.Stream.t()) ::Helloworld.HelloReply.t()
  def say_hello(request, _stream) do
    Helloworld.HelloReply.new(message: "Hello #{request.name}")
  end
end

License

This software is licensed under the Apache 2.0 license.

About

Collects exceptions and errors from GRPC servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages