AppSignal error not received

I have a case where I had to report two AppSignal errors but only the first error is received but not the second error. Need advice on how I can receive both the errors.

def run() do
Appsignal.instrument("MyApp.BlogWeb", fn ->
 report_appsignal_errors()
 end)
end

defp report_appsignal_errors() do
 Appsignal.Instrumentation.set_error(:error, %ErrorStruct{message: "error 1"}, stacktrace())

 result = Blog.get_title()

 case result do
      {:ok, _result} -> :ok

      {:error, changeset} ->
        Appsignal.Instrumentation.set_error(
          :error,
          changeset.errors,
          stacktrace()
        )
 end
end

Here, if I comment out first appsignal error , the second is received but if I want both, only the first is received.

Hey there :wave: Milica from AppSignal here :slight_smile:

Please feel free to reach out to AppSignal support (support@appsignal.com), so that our support engineer can help you with this issue :slight_smile:

1 Like