Often logs and metrics appear to be interchangeable with one another. This page covers differences between them, and when to use them,
logger.info(“Foo {} happened to user {}.) to counter(“event”, “type”, “foo”, “user”, user).record(). The metric call has named parameters, while the logging call are positional, at lease at the callsite.