Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSentry ¶
func InitSentry()
func NotifySentry ¶
func NotifySentry(re ReportableError)
NotifySentry sends an event to sentry.io. Sentry is configurable via the environment variables SENTRY_ENVIRONMENT, SENTRY_DSN, SENTRY_RELEASE.
Types ¶
type Logger ¶
type Logger interface { Log(fields map[string]interface{}) LogFromClientRequest(fields map[string]interface{}, req *http.Request) LogFromBackendRequest(fields map[string]interface{}, req *http.Request) }
type RecoveredError ¶
type RecoveredError struct {
ErrorMessage string
}
func (RecoveredError) Error ¶
func (re RecoveredError) Error() string
Click to show internal directories.
Click to hide internal directories.