Reduce volume of diff view event calls
Currently, we hit the /api/:version/usage_data/increment_unique_users
API with 5.5 million events for every of the 4 pairs view settings per week. This can be seen in Kibana, by investigating the json.params.value
value:
![](/-/project/278964/uploads/b6c666cce93b3ff5c5662369189e449b/image.png)
Probably, we fire events every time someone views a diff and we shouldn't have to do that. We could improve our error budget by reducing the volume of diff view event calls, perhaps by caching or rethinking how and when the events are fired.
Edited by Michał Wielich