code: public void registerMetrics(MetricRegistry metricRegistry) {
          if (id() != null) {
              metricName = MetricRegistry.name(Pipeline.class, id(), "executed");
              executed = metricRegistry.meter(metricName);
          }
      }
docs: Register the metrics attached to this pipeline.
  
  @param metricRegistry the registry to add the metrics to