Collect metrics

Curiosity too, can some of the previous methods (including the `insert_stats`) fail by throwing and exception? Just want to be sure we are not leaking resources by not freeing this pointer if something fails.