CityBaseInc / airbrake_client

Airbrake client to report errors and exceptions to Airbrake.io.
Other
0 stars 1 forks source link

How to dispatch an error to Airbrake? #32

Open etiennelacoursiere opened 1 month ago

etiennelacoursiere commented 1 month ago

Hi this is more a question than a issue,

I have trouble figuring out how to trigger an airbrake from an error for example a Phoenix.ActionClauseError which is triggered when no function clause match in a controller.

I've set some IO.inspect and I can see that the exception is caught by the Airbrake plug and then put in the Airbrake.Worker server state via the Airbrake.Worker.remember/2 function but i don't understand how it is supposed to be dispatched to airbrake after that?

I know my setup is working because i tried sending an error to airbrake via Airbrake.report/2 and it's working just fine.

Thanks