code: public static void updateInstrumentation(CollectorConfiguration config) throws Exception {
          List<String> scripts = new ArrayList<String>();
          List<String> scriptNames = new ArrayList<String>();
          Map<String, Instrumentation> instrumentTypes=config.getInstrumentation();
  
          for (Map.Entry<String, Instrumentation> stringInstrumentationEntry : instrumentTypes.entrySet()) {
              Instrumentation types = stringInstrumentationEntry.getValue();
              String rules = ruleTransformer.transform(stringInstrumentationEntry.getKey(), types,
                              config.getProperty("version."+ stringInstrumentationEntry.getKey(), null));
  
              if (log.isLoggable(Level.FINER)) {
                  log.finer("Update instrumentation script name=" + stringInstrumentationEntry.getKey() + " rules=" + rules);
              }
  
              if (rules != null) {
                  scriptNames.add(stringInstrumentationEntry.getKey());
                  scripts.add(rules);
              }
          }
  
          PrintWriter writer = new PrintWriter(new StringWriter());
  
          transformer.installScript(scripts, scriptNames, writer);
  
          writer.close();
      }
docs: This method updates the instrumentation instructions.
  
  @param config The collector configuration
  @throws Exception Failed to update instrumentation rules