OdyseeTeam / odysee-api

API server for Odysee
https://odysee.com
MIT License
229 stars 49 forks source link

Add per-operation metrics across the base #284

Closed anbsky closed 4 years ago

anbsky commented 4 years ago

This will give us time spent in each subsystem per request, on average.

To avoid skewing data for publish request, which normally take much longer time, it is measured separately.

This is version 0.1, if this proves useful I will re-implement metrics collection with db hooks and factor out the systems that need measurement (for example, json marshaling/unmarshalling).