Do the following populate in production?
Kernel.caller
$@
I am trying to retrieve the backtrace for monitoring apps, and I can verify those both work in development mode, but can’t be certain they don’t work in production (easy to test in development, but in production I am sending the backtrace to an outside app).
Or, is there something else I can call to get the backtrace or enable it to work? I understand how to enable logging, but I can’t be certain that necessarily effects the backtrace.
..removed un-needed code..
You don’t have to enable anything, it just works, this is not related to
railsat all, it’s just arubyfeature.