func ReportToSentry(err error, r *http.Request) {
	st := raven.NewStacktrace(4, 3, []string{"github.org/stellar"})
	exc := raven.NewException(err, st)
	var packet *raven.Packet
	if r != nil {
		h := raven.NewHttp(r)
		packet = raven.NewPacket(err.Error(), exc, h)
	} else {
		packet = raven.NewPacket(err.Error(), exc)
	}
	raven.Capture(packet, nil)
}
ReportToSentry reports err to the configured sentry server.  Optionally,
specifying a non-nil `r` will include information in the report about the
current http request.
package errors
import (
	"net/http"
	"github.com/getsentry/raven-go"
	"github.com/pkg/errors"
)
type StackTracer interface {
	StackTrace() errors.StackTrace
}
func Cause(err error) error {
	return errors.Cause(err)
}
func Errorf(format string, args ...interface{}) error {
	return errors.Errorf(format, args...)
}
func New(message string) error {
	return errors.New(message)
}