https://github.com/renderedtext/sentry_grpc
Collects exceptions and errors from GRPC servers.
https://github.com/renderedtext/sentry_grpc
Last synced: about 1 year ago
JSON representation
Collects exceptions and errors from GRPC servers.
- Host: GitHub
- URL: https://github.com/renderedtext/sentry_grpc
- Owner: renderedtext
- Created: 2018-12-19T18:29:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-20T04:40:39.000Z (over 1 year ago)
- Last Synced: 2025-02-20T05:29:22.756Z (over 1 year ago)
- Language: Elixir
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sentry.Grpc
Collects exceptions and errors from GRPC servers.
## Installation
```elixir
def deps do
[
{:sentry_grpc, github: "renderedtext/sentry_grpc"}
]
end
```
## Setup
Inject a `use Sentry.Grpc, service: ` into your Grpc services to
capture errors and exceptions.
Example for HelloWorld:
``` elixir
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](LICENSE).