Santayana's Egotism in German Philosophy is an admirable and very readable history and diagnosis of that story, from Leibniz to the late 19th C. He has a gorgeous style and lovely understated sense of humour. And virtually explains the Nazis, although published in 1915.