Introducing Rasputin
What Rasputin is and why we're building it.
Pierre Mingels 6 min read
"So, what exactly are you building with Rasputin, and why?"
Good question! I've been programming for a few years now, and the way we build software in those years has changed drastically. Elephant in the room being AI of course. AI has fundamentally changed how we build software, and I couldn't be happier. AI truly is an accelerator for those who understand their domain of work and leverage the shit out of it. I've never been more productive when it comes to building software, and am thankful to this technology for enabling me to be able to do so.
Building software has become far easier with the introduction of AI, especially as the frontier models get more powerful with time. Obviously it depends on the scope and complexity of what it is that you are building, but no one can deny that it's become drastically easier and faster. However, debugging software hasn't become nearly as enjoyable or easy as building it. Ideally, it should be the other way around.
At least when it comes to building software you enjoy the journey of doing so. Working on a problem and coming up with a hard-earned solution, creating clean sexy UI that feels good to interact with, and having fun building a product. Debugging on the other hand is a stressful (and not the good kind of stressful), tedious, and can be painful especially depending on the impact of the issue you are trying to fix.
Before Rasputin I used to work at a marketplace startup in the Netherlands. We had a "ship fast and break things" kind of culture and there were days when I'd spend an hour trying to debug something or fix some kind of bottleneck related to performance. This was particularly heartbreaking when it meaningfully affected users, because anyone who self-identifies as a builder and creates anything with love and care wants the people who experience your product to experience it with a certain sense of ecstasy.
I've used traditional observability platforms like Sentry to debug issues before, but quite frankly they haven't been good enough for the debugging experience I want. They provide telemetry signals like logs, metrics, traces, and profiles, etc that give me a good idea of what's going on, but rarely provide the "why". In my experience, logs tend to get me closest to the answer. That assumes, of course, that you've added the right logs in the right places inside of your program.
What if you haven't? Well then have fun running around like a headless chicken trying to reproduce and fix the issue with whatever telemetry data and other signals you have access to. I'm not discounting traditional telemetry. It's useful and has its place in observability. I'm just not a fan of the debugging experience that comes with relying on it, especially now that my expectations of software development have changed with AI.
I want the ability to debug anything stress-free and ideally be a prompt away from a solution.
My take is that in order to do this we need a much better understanding of what exactly is going on inside your program at runtime. What I mean by this is that whenever an endpoint gets called, or background job runs, webhook gets triggered, or any other execution takes place, I want to know the following:
- What functions were called.
- How long each function took to run.
- How many times each function was called.
- The flow of execution and relationships between functions (call tree).
- The inputs and outputs of those functions, when appropriate.
I've spent the past few months building the first version of Rasputin, and I've been able to achieve this through two things:
- Function-level instrumentation
- Execution recorder
Function-level instrumentation is essentially modifying source code at the function level so that we can observe how functions behave at runtime. The execution recorder lives inside your application and uses this instrumentation to aggregate execution and function-level metrics, capture the flow of an execution (what functions were called, in what order, and how many times), and record function arguments and return values to understand how data moves through your program.
One really cool feature that comes out of this is something I call "on-demand recording", which essentially allows you to select an endpoint, background job, webhook, or any other kind of execution and record the next incoming request/run so that you have complete visibility into what happened inside of it.
This is a very similar concept to probing, but in my opinion much better because it's simple and doesn't require a lot of thinking on your end. You don't need to worry about where to put your probe and what data to capture. Plus, you retain much more context about how your code ran than you would typically get from individual probes, which are generally configured to capture specific pieces of data.
All of this is very cool and useful for developers, but it also is an incredibly powerful set of primitives for AI to leverage to better understand the code that is running in production. Through the combination of our MCP server and this granular telemetry data we get very close to the kind of debugging experience that I think should be the norm for developers.
We've even created a debugging agent that you can hand off issues to. The agent utilizes these primitives to remediate the issue inside of an isolated sandbox that's cloned from the failing release (the release where the error was thrown in). This can be useful if you're in the middle implementing a feature and don't feel like stashing your changes or context switching and would rather have a background agent resolve the issue for you instead of prompting your coding agent yourself.
I want to outline the problems Rasputin is going to solve:
- Identifying and fixing performance bottlenecks
- The need to add telemetry and redeploy your application to debug something (No need to redeploy with Rasputin ever again, seriously)
- Lack of granular observability and understanding of how source code behaves in production
- AI coding agents having little to no visibility into running applications
- Code-level observability and debugging as a whole
For now, Rasputin is focused on the code level of observability rather than higher levels of abstraction like services and infrastructure. In the future this might change, but for now we want to focus on code-level observability. Quite frankly I've never had issues trying to understand how much RAM or CPU is being consumed in a single service, but I have had issues trying to understand what is consuming those resources. This is why code-level observability is more interesting, but also more critical to try and solve as opposed to the other levels of observability because issues surrounding it are more common and the one with the most gaps. With that said, thank you for reading my brain dump on what Rasputin is and why it's being built!
You can sign up for Rasputin for free today. If you have any questions, feedback, or need help with anything at all, feel free to email me at pierre@rasputinai.dev. I read every email and reply as quickly as I can.