Skip to content

Commit

Permalink
feat: add additional clause for Telem.client_join (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 authored Jan 5, 2024
1 parent b85afc4 commit 694ff2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1
1.1.2
6 changes: 5 additions & 1 deletion lib/supavisor/monitoring/telem.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ defmodule Supavisor.Monitoring.Telem do
)
end

@spec client_join(:ok | :fail, S.id()) :: :ok
@spec client_join(:ok | :fail, S.id() | any()) :: :ok
def client_join(status, {{_, tenant}, user, mode}) do
:telemetry.execute(
[:supavisor, :client, :joins, status],
%{},
%{tenant: tenant, user: user, mode: mode}
)
end

def client_join(_status, id) do
Logger.warning("client_join is called with a mismatched id: #{inspect(id)}")
end
end

0 comments on commit 694ff2a

Please sign in to comment.