Skip to content

Commit

Permalink
Msg might not be an atom
Browse files Browse the repository at this point in the history
  • Loading branch information
massemanet committed Jun 1, 2023
1 parent 3255087 commit 6a9229e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prometheus_diameter_collector.erl
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ gather_statistics(SvcName, Peer, S, Apps, Stats) ->
{type, msg_type(Msg)},
{msg, msg_name(Msg, Apps)},
{rc, RC}]], Cnt, S1);
({{Msg, _Direction, error}, Cnt}, S1) ->
({{_, _, error}, Cnt}, S1) ->
add([errors,[{svc, SvcName}, {peer, Peer},
{error, Msg}]], Cnt, S1);
{error, unknown}]], Cnt, S1);
({{Msg, Direction, Result}, Cnt}, S1) when is_atom(Result) ->
add([messages, [{svc, SvcName}, {peer, Peer},
{direction, Direction},
Expand Down

0 comments on commit 6a9229e

Please sign in to comment.