   end
 
   test "filters parameters", %{socket: socket, fake_transaction: fake_transaction} do
-    AppsignalTest.Utils.with_config(%{filter_parameters: ["password"]}, fn() ->
-      UsingAppsignalPhoenixChannel.handle_in("instrumented", %{"password" => "secret"}, socket)
+    AppsignalTest.Utils.with_config(%{filter_parameters: ["password"]}, fn ->
+      InstrumentedPhoenixChannel.handle_in("instrumented", %{"password" => "secret"}, socket)
       assert "[FILTERED]" == FakeTransaction.sample_data(fake_transaction)["params"]["password"]
     end)
   end

defmodule UsingAppsignalPhoenixChannel do
  import Appsignal.Phoenix.Channel, only: [channel_action: 5]
  use Appsignal.Instrumentation.Decorators


  def handle_in("decorated", payload, socket) do
    {:reply, {:ok, payload}, socket}
  end
end

defmodule InstrumentedPhoenixChannel do
  import Appsignal.Phoenix.Channel, only: [channel_action: 5]
  use Appsignal.Instrumentation.Decorators

  def handle_in("instrumented" = action, payload, socket) do
    channel_action(__MODULE__, action, socket, payload, fn ->
