code: public static TaskMetrics get(final TaskState taskState) {
      return (TaskMetrics) GOBBLIN_METRICS_REGISTRY.getOrDefault(name(taskState), new Callable<GobblinMetrics>() {
        @Override
        public GobblinMetrics call() throws Exception {
          return new TaskMetrics(taskState);
        }
      });
    }
docs: Get a {@link TaskMetrics} instance for the task with the given {@link TaskState} instance.
  
  @param taskState the given {@link TaskState} instance
  @return a {@link TaskMetrics} instance