-defmodule UsingAppsignalPhoenixChannel do
+defmodule DecoratedPhoenixChannel 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

  @decorate channel_action()
  def handle_in("decorated_with_unbound_payload", _, socket) do
    {:reply, :ok, socket}
  end

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

    socket: socket,
    fake_transaction: fake_transaction
  } do
    DecoratedPhoenixChannel.handle_in("decorated", %{"body" => "Hello, world!"}, socket)

    assert [{"123", :channel}] == FakeTransaction.started_transactions(fake_transaction)
    assert "DecoratedPhoenixChannel#decorated" == FakeTransaction.action(fake_transaction)

    assert %{
             "environment" => %{
