func Close() {
	sentry.Close()
}
Close flushes the Client's buffer and releases the associated ressources. The
Client and all the cloned Clients must not be used afterward.
package sentry
import (
	"errors"
	"fmt"
	"net/http"
	"runtime/debug"
	raven "github.com/getsentry/raven-go"
)
type Client interface {
	Capture(packet *raven.Packet, captureTags map[string]string) (eventID string, ch chan error)
	CaptureError(err error, tags map[string]string, interfaces ...raven.Interface) string
	Close()
}
var (
	sentry Client = &NoopClient{}
)
type Config struct {
	Enabled bool
	DSN     string
	Labels  map[string]string
}
func InitSentry(cfg Config) error {
	if !cfg.Enabled {
		return nil
	}
	client, err := raven.NewWithTags(
		cfg.DSN,
		cfg.Labels,
	)
	if err != nil {
		return err
	}
	sentry = client
	return nil
}
func Sentry() Client {
	return sentry
}