Back to Calendar

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!

Read the docs

Credits

Illustrations by Icons 8:

  • Santa Hat
  • Santa sleigh
  • Cookie
  • Heart
  • Santa face
  • Present
  • ID
  • Snowflake
  • Snow Globe
  • Question Mark
  • Fairy Lights
  • Piggy Bank
  • Globe
  • Present #2

Illustrations by Elisabet Guba:

  • Clock

Icons by Obra Icons

Challenges by Svelte Ambassadors:

  • Stanislav Khromov
  • Willow (GHOST)
  • Paolo Ricciuti

Santa Tracker Data by NORAD via Danielle Vass