Runtime recorder
Record calls, arguments, and returns inside scoped executions. Rasputin saves that trace when the execution fails, or when you use Capture for the next matching executions.
How it works
An execution is one scoped run of
work. Each HTTP request is one execution; scope other entrypoints with execution.createScope() the same way. Rasputin
records function calls, arguments, return values, and exceptions inside that scope.
When the execution fails, Rasputin attaches that recording to the error. To record healthy runs too, open Executions, use Capture, and save the next matching executions.
The @rasputin-ai/sveltekit/vite plugin instruments
SSR modules at build time.
The recorder needs a long-running Node process with adapter-node. It is not built for adapter-vercel, adapter-netlify, Cloudflare, or other serverless and edge adapters.
What you need to set up
If you followed Installation, both pieces are already in place:
1. Instrument functions
The @rasputin-ai/sveltekit/vite plugin
instruments SSR modules.
2. Scope an execution
rasputinServerHooks creates one execution per
HTTP request. Recorded state stays inside that execution.
Where to go next
- Check auto-instrumentation support for adapter-node and your Node runtime.
- Follow Instrumentation & executions for non-HTTP work and recorder tuning.
