Should you use a log or a metric?

Sentry explains when developers should use logs rather than metrics to instrument an application. Logs record what was true at a particular event, helping reconstruct what happened during debugging; metrics track numbers over time, including when nothing is wrong. The article contrasts Sentry.logger.info("user.signup") with Sentry.metrics.count("user.signup") and notes that both support attributes, shared context, filtering, grouping and counting.

AI-written summary, checked against the cited sources. How summaries work

Image: Sentry Blog

Read at Sentry Blog