Compute the KL divergence between two distributions

Followup question: as the above suggests, I am able to apply the logp to elements of my traces. But… I get back logp values that are very, very small (between -16,000 and -2 * 10^144!

I was wondering if you had any suggestions about how I might go about rescaling these numbers so that I can deal with them.