Day 7 Observability
Santa's workshop has gone enterprise! With millions of deliveries to track, even the North Pole needs proper observability — and now SvelteKit has full OpenTelemetry support to help you see exactly what's happening in your app.
Create an instrumentation.server.ts file, enable the experimental flags in your config, and suddenly all your handle hooks, load functions, form actions, and remote functions get beautiful traces. It's like having a magical map that shows every stop on Santa's route!
When something goes wrong (like an elf hiding questionable code in your naughty-or-nice checker), just grab the trace ID and follow it through your spans to find exactly where things went sideways. You'll see the full journey: from the initial request through handle to resolve and into your functions.
Add custom attributes to your spans with setAttribute() for extra context — because even Santa needs good logging when determining who's been naughty and who's been nice!