Skip to content

Commit

Permalink
Fix tag example with duration instead of count (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
objectuser committed Aug 13, 2022
1 parent c1cb90e commit 578be9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/telemetry_metrics.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 578be9c

Please sign in to comment.