func New(cfg Config) (*Client, error) {
	rc, err := raven.NewClient(
		raven.ClientOptions{
			Dsn:         cfg.DSN,
			Environment: cfg.Environment,
			ServerName:  cfg.ServerName,
			Dist:        cfg.Dist,
			Release:     cfg.Release,
			Debug:       cfg.Debug,
			DebugWriter: os.Stderr,
		},
	)
	if err != nil {
		return nil, err
	}
	return &Client{
		Config: cfg,
		Client: rc,
	}, nil
}
// New returns a new client.
New returns a new client.
// New returns a new client .
func New(cfg Config) (*Client, error) {
	rc, err := raven.NewClient(
		raven.ClientOptions{
			Dsn:         cfg.DSN,
			Environment: cfg.Environment,
			ServerName:  cfg.ServerName,
			Dist:        cfg.Dist,
			Release:     cfg.Release,
			Debug:       cfg.Debug,
			DebugWriter: os.Stderr,
		},
	)
	if err != nil {
		return nil, err
	}
	return &Client{
		Config: cfg,
		Client: rc,
	}, nil
}
func New ( cfg Config ) ( * Client , error ) { rc , err := raven . NewClient ( raven . ClientOptions { Dsn : cfg . DSN , Environment : cfg . Environment , ServerName : cfg . ServerName , Dist : cfg . Dist , Release : cfg . Release , Debug : cfg . Debug , DebugWriter : os . Stderr , } , ) if err != nil { return nil , err } return & Client { Config : cfg , Client : rc , } , nil }
New returns a new client.
New returns a new client .