Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add additional clause for Telem.client_join #219

Merged
merged 16 commits into from
Jan 5, 2024
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
Loading