Sentry not capturing crashes inside Task.start function

This did not help sentry capture error msgs. (I have before_send hook to confirm where I print the event). The only thing which worked is manually capturing it

Task.start(fn ->
  try do
    MyModule.function()
  rescue
    exception ->
      Sentry.capture_exception(exception, [stacktrace: System.stacktrace(), extra: %{extra: %{extra_information: "my extra information"}}])
  end
end)