How to measure speed (say calls/sec)

I’ve been investigating telemetry as it’s seems the right approach, but haven’t found anything about it.
So it’s easy to implement a counter, but how about a performance metric, like processed messages per sec?
It’s not just to +1 on a function call, but maintaining on a time window.

Any guideline appreciated, thanks! :smiley:

I think there’s a similar thread here:

1 Like