func NewConfig(config *Config) *Handler {
	reporter, err := errorreporting.NewClient(context.TODO(), config.ProjectID,
		errorreporting.Config{
			ServiceName:    config.Service,
			ServiceVersion: config.Version,
		},
	)

	if err != nil {
		panic(err)
	}

	return &Handler{
		projectID: config.ProjectID,
		writer:    config.Writer,
		reporter:  reporter,
	}
}
// NewConfig returns the default implementation of a Client for given config.
NewConfig returns the default implementation of a Client for given config.
// NewConfig returns the default implementation of a Client for given config .
func NewConfig(config *Config) *Handler {
	reporter, err := errorreporting.NewClient(context.TODO(), config.ProjectID,
		errorreporting.Config{
			ServiceName:    config.Service,
			ServiceVersion: config.Version,
		},
	)
	if err != nil {
		panic(err)
	}
	return &Handler{
		projectID: config.ProjectID,
		writer:    config.Writer,
		reporter:  reporter,
	}
}
func NewConfig ( config * Config ) * Handler { reporter , err := errorreporting . NewClient ( context . TODO ( ) , config . ProjectID , errorreporting . Config { ServiceName : config . Service , ServiceVersion : config . Version , } , ) if err != nil { panic ( err ) } return & Handler { projectID : config . ProjectID , writer : config . Writer , reporter : reporter , } }
NewConfig returns the default implementation of a Client for given config.
NewConfig returns the default implementation of a Client for given config .