Using summary for request size I would track
- total requests
- total total request size
- biggest request size
I can do it like this
meterRegistry.summary("request.size", <tag for url>).record(<size>);
However I can achieve the same using counters and a gauge for the biggest size
meterRegistry.counter("request.size.total", <tag for url>).increment(<size>);
meterRegistry.counter("request.size.count", <tag for url>).increment();
meterRegistry.gauge("request.size.max", <tag for url>).set(<new value if needed>);
// and the gauge value will be stored in atomic variable
Question is, is there any benefit of summary over the longer solution except for being shorter?