# Native support for SvelteKit's new OpenTelemetry spans

**Published:** August 18, 2025 | **Authors:** Elliott Johnson

---

Vercel now directly integrates with [SvelteKit](https://svelte.dev/docs/kit)'s new server-side OpenTelemetry spans.

To get started, activate experimental tracing in SvelteKit:

**svelte.config.js**
```javascript
/** @type {import('@sveltejs/kit').Config} */
const config = {
	kit: { 
		experimental: {
			tracing: {
				server: true,
			},
			instrumentation: {
				server: true,
			}
		}
	}
};

export default config;
```

And create the tracing instrumentation file with the Vercel OpenTelemetry collector:

**src/instrumentation.server.ts**
```javascript
import { registerOTel } from '@vercel/otel';

registerOTel({
	serviceName: 'my-sveltekit-app'
});
```

Traces generated during [tracing sessions](https://vercel.com/docs/session-tracing) will now include the built-in SvelteKit spans. You can also [configure other collectors](https://vercel.com/docs/otel). See the [SvelteKit observability docs](https://svelte.dev/docs/kit/observability) for more information.

![SvelteKit integrated spans (in green) shown beneath Vercel infrastructure spans. Delays added for illustration.](//images.ctfassets.net/e5382hct74si/2Ayq1L8CwzDDc4yvGdqEht/27f24327b0b11cd325c752ef3eda4a19/CleanShot_2025-08-14_at_10.54.23.png)

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)