 
   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()}]}
+    {:ok, chardata, metadata ++ [pid: "", conn: %{owner: Appsignal.Error.BackendTest.pid()}]}
   end
 
   def from_cowboy(min_level, level, kind, data) do

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

      Logger.add_translator({Murphy, :with_conn})

      Murphy.call(pid, fn ->
        ignore_pid()
        raise "Exception"
      end)

