/** * Returns an aspect that will update this metric with the failure value of * the effects that it is applied to. * * @tsplus getter effect/core/io/Metrics/Metric trackError */ export function trackError(self: Metric) { return (effect: Effect): Effect => self.trackErrorWith((a: In) => a)(effect) }