Handler is responsible for sending errors to Sentry.
type Handler struct {
// contains filtered or unexported fields
}
func New(dsn string) (*Handler, error)
New creates a new handler.
▹ Example
func NewFromClient(client *raven.Client) *Handler
NewFromClient creates a new handler from a client instance.
▹ Example
func NewSync(dsn string) (*Handler, error)
NewSync creates a new handler that sends errors synchronously.
▹ Example
func NewSyncFromClient(client *raven.Client) *Handler
NewSyncFromClient creates a new handler from a client instance that sends errors synchronously.
▹ Example
func (h *Handler) Close() error
Close closes the underlying notifier and waits for asynchronous reports to finish.
func (h *Handler) Handle(err error)
Handle sends the error to Rollbar.