See card: https://trello.com/c/bSqIkTvr/213-8-conflict-stats-as-a-developer-i-want-stats-gathered-on-conflicts-that-occur-such-that-i-can-get-a-better-understanding-on-pote
{quote} Just create a new counter similar to here.
Every time a conflict happens, increase that counter but with the labels operation (getUser, saveUser etc.), operation type (mutation/query/etc.), path (User.comments, Query.getUser(), etc.). Similar to here.
Doesn't make sense to add labels for user and client info as we can't query individual fields like those in Prometheus (well OK, we can, but we can't aggregate data like "number of unique clients").
BTW, once the counter is read, gotta reset it. Similar to here. {quote} |
|