From 578be9cd6428e1da0b175d57c0a159f819e63011 Mon Sep 17 00:00:00 2001 From: Kevin Lewis Date: Sat, 13 Aug 2022 10:40:38 -0500 Subject: [PATCH] Fix tag example with duration instead of count (#101) --- lib/telemetry_metrics.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/telemetry_metrics.ex b/lib/telemetry_metrics.ex index 65dd42f..697afe5 100644 --- a/lib/telemetry_metrics.ex +++ b/lib/telemetry_metrics.ex @@ -92,7 +92,7 @@ defmodule Telemetry.Metrics do This is where tagging comes into play. All metric definitions accept a `:tags` option: - counter("db.query.count", tags: [:table, :operation]) + counter("db.query.duration", tags: [:table, :operation]) The above definition means that we want to keep track of the number of queries, but we want a separate counter for each unique pair of table and operation. Tag values are