SvelteKit now includes built-in OpenTelemetry tracing support and a dedicated instrumentation.server.ts file for setting up observability monitoring. The framework can emit traces for handle hooks, load functions, form actions, and remote functions, with spans including request attributes and context information. The instrumentation file ensures monitoring tools are loaded before application code, with support across all official SvelteKit adapters that have server components.

3m read timeFrom svelte.dev
Post cover image
Table of contents
First-party OpenTelemetry tracesA convenient home for all of your instrumentationAcknowledgements

Sort: