From 694ff2ac66c52521375a1965512d222000e8a188 Mon Sep 17 00:00:00 2001 From: Joel Lee Date: Fri, 5 Jan 2024 19:14:13 +0800 Subject: [PATCH] feat: add additional clause for Telem.client_join (#219) --- VERSION | 2 +- lib/supavisor/monitoring/telem.ex | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 8cfbc905..45a1b3f4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.1 \ No newline at end of file +1.1.2 diff --git a/lib/supavisor/monitoring/telem.ex b/lib/supavisor/monitoring/telem.ex index a42afc7d..ec63786e 100644 --- a/lib/supavisor/monitoring/telem.ex +++ b/lib/supavisor/monitoring/telem.ex @@ -48,7 +48,7 @@ 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], @@ -56,4 +56,8 @@ defmodule Supavisor.Monitoring.Telem do %{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