Skip to content

Commit

Permalink
fix: add labelnames to UnhandledError counter in metrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMissx committed Jul 5, 2024
1 parent bef86fb commit d8ae4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anjani/core/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
labelnames=["type"],
)
CommandCount = Counter("anjani_command_stats", "Number of coomand", labelnames=["name"])
UnhandledError = Counter("anjani_unhandled_error", "Number of unhandled error")
UnhandledError = Counter("anjani_unhandled_error", "Number of unhandled error", labelnames=["type"])

EventLatencySecond = Gauge(
"anjani_event_latency",
Expand Down

0 comments on commit d8ae4b3

Please sign in to comment.