This just increments a counter for started tasks, ended tasks, tasks that failed
with an exception. It also registers a timer for every task run.
The way the celery worker name is pulled is a bit hideous and there must be a
better way, but I couldn't find one...