Sentryยท
Should you use a log or a metric?
TL;DR
Logs and metrics can both count events, but using changeable debug logs for long-term dashboards makes monitoring fragile. Sentry recommends logging context to explain individual events and using dedicated counters, gauges, or distributions for numbers you regularly track. This keeps debugging useful and dashboards stable, without storing extra logs just to count them.