SvelteKit observability just got 10x better, and we’re here for it
Blog post from Sentry
SvelteKit has significantly enhanced its observability features by introducing full support for instrumentation and tracing, making it the first ESM-based meta-framework to offer such capabilities out of the box. This development is particularly beneficial for SvelteKit and Sentry users, as Sentry is already compatible with the new feature. From version 2.31.0, SvelteKit allows users to implement server-side instrumentation and emits dedicated spans for various request lifecycle events, facilitating better performance tracking. The integration simplifies the process of adding observability to applications and supports automatic instrumentation with tools like OpenTelemetry. Users can easily configure their applications through a dedicated file, `instrumentation.server.js`, which ensures early evaluation for comprehensive tracing, and the Sentry SvelteKit SDK is fully compatible with these new features, allowing seamless integration for existing users. This advancement positions SvelteKit as a leader in the ESM observability space, setting a new standard for other frameworks to follow.