Fix typo in metric name

parent f3c3690a
...@@ -171,7 +171,7 @@ handle_info(Other, S) -> ...@@ -171,7 +171,7 @@ handle_info(Other, S) ->
terminate(_Reason, #state{started_at = Started}) -> terminate(_Reason, #state{started_at = Started}) ->
mtp_metric:count_inc([?APP, in_connection_closed, total], 1, #{}), mtp_metric:count_inc([?APP, in_connection_closed, total], 1, #{}),
Lifetime = erlang:system_time(millisecond) - Started, Lifetime = erlang:system_time(millisecond) - Started,
metric:histogram_observe( mtp_metric:histogram_observe(
[?APP, session_lifetime, seconds], [?APP, session_lifetime, seconds],
erlang:convert_time_unit(Lifetime, millisecond, native), #{}), erlang:convert_time_unit(Lifetime, millisecond, native), #{}),
lager:debug("terminate ~p", [_Reason]), lager:debug("terminate ~p", [_Reason]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment