Extension of MetricPlugin for download_device_keys task.
Mark the measuring transaction finished once the task is completed.
Can be used to log this transaction.
Invoked when there is any error in the ongoing task. The metrics tool can use this information to attach to the ongoing transaction.
Start the measurement of the metrics as soon as task is started.