Picture a small device you built, a sensor inside a machine at a customer's site a few hundred kilometres away. One morning the customer tells you it restarted during the night. What do you know about why?
On your desk, a debugger would answer that: a cable to the chip and a tool that stops the program and shows where it is. In the field there is no cable, no screen and nobody watching. The device is the only witness, and as we'll see in a moment, by default it forgets everything when it restarts.
ferrite exists for this situation: a device in the field has crashed, and there is no stack trace, no log and nothing that says what happened.
We'll follow one crash twice. First we ask what it leaves behind with nothing in place. Then we let ferrite , an open-source Rust library for this problem, save a small record of the crash, and we turn that record back into the line of code that crashed.…