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

This commit is contained in:
Jeffrey Paul 2020-09-30 22:11:53 -07:00
parent 876f2d9a98
commit de9fae295d
1 changed files with 2 additions and 0 deletions

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