Adds metadata to logged array taken from backtrace