       Logger.add_translator({Murphy, :with_conn})
 
       Murphy.call(pid, fn ->
-        Tracer.ignore()
+        ignore_pid()
         raise "Exception"
       end)
 


  def with_conn(min_level, level, kind, data) do
    {:ok, chardata, metadata} = Logger.Translator.translate(min_level, level, kind, data)
    {:ok, chardata, metadata ++ [pid: "", conn: %{owner: self()}]}
  end

  def from_cowboy(min_level, level, kind, data) do

      assert Backend.terminate(:shutdown, %{}) == :ok
    end
  end

  def pid do
    if System.otp_release() < "21" do
      :erlang.list_to_pid('<0.123.0>')
    else
      self()
    end
  end

  defp ignore_pid do
    if System.otp_release() < "21" do
      :ets.insert(:"$appsignal_registry", {pid(), :ignore})
    else
      Tracer.ignore()
    end
  end
end
