Async action and failure reporting


I am looking to the example to understand how to implement a custom protocol in Gatling.

In case my operation is asynchronous, what’s the correct way of reporting errors?

Should I do something

myAction onComplete {
success => DataWriter.logRequest(“success”)
next ! session
failure => DataWriter.logRequest(“Failure”)
next ! session




Beware, this will change quite a lot in 2.2.