My own solution, which might be useful to those using javascript (nodejs or browser):<p>I use mathjs.quantileSeq() and log 0%, 25%, 50%, 75%, and 100%. This seems to be good for "casual metric logs".<p>I've found that this gives a good shape of the data, as well as the absolute min/max values. If you use 1% or 99% you'll miss the absolute worst performers, and I want to be at least aware of what the worst performance numbers are.<p><a href="https://mathjs.org/" rel="nofollow">https://mathjs.org/</a><p><a href="https://mathjs.org/docs/reference/functions/quantileSeq.html" rel="nofollow">https://mathjs.org/docs/reference/functions/quantileSeq.html</a>