adding task instance metrics.