add sentry middleware doc link in comment
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
876f2d9a98
commit
de9fae295d
@ -42,6 +42,8 @@ func (s *server) routes() {
|
||||
// this adds a sentry reporting middleware if and only if
|
||||
// sentry is enabled via setting of SENTRY_DSN in env.
|
||||
if s.sentryEnabled {
|
||||
// Options docs at
|
||||
// https://docs.sentry.io/platforms/go/guides/http/
|
||||
sentryHandler := sentryhttp.New(sentryhttp.Options{})
|
||||
s.router.Use(sentryHandler.Handle)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user