FOMO Daily
Feed
Sentryยท

Should you use a log or a metric?

DevOps & SREObservabilityLoggingMetrics

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.

Read the original post Sign in to mark as read or skip