elixir_agent
elixir_agent copied to clipboard
Dumb question about crashes
Describe the bug We have a cron job running every night. This process crashes sometimes and we would like to monitor the crashes on new relic.
As this is not a web/ecto... process we have to deal with it in a different way. I tried something like this:
...
:ok = NewRelic.start_transaction("MyCategory", "MyName")
... Code which may crash here...
NewRelic.stop_transaction()
but the errors are not displayed on New Relic dashboard.
How can we "monitor" this process to publish data to NR?
Thanks!
Environment
- Elixir & Erlang version (
elixir -v
): 1.14.3 - Agent version (
mix deps | grep new_relic_agent
): 1.27.8