add sentry middleware doc link in comment
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jeffrey Paul 2020-09-30 22:11:53 -07:00
parent 876f2d9a98
commit de9fae295d

View File

@ -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)
}