write metrics to tempodb OK

TODO create a "transaction" if something fail rollback tempo and mongo
stuff