code: func getMetricName(file string) string {
  	// remove all leading '/' from file name
  	file = strings.TrimPrefix(file, *whisperDirectory)
  	for file[0] == '/' {
  		file = file[1:]
  	}
  
  	return *namePrefix + strings.Replace(strings.TrimSuffix(file, ".wsp"), "/", ".", -1)
  }
docs: // generate the metric name based on the file name and given prefix