Svelte observability, live in minutes.
One setupTracePath call in your root layout covers Svelte and SvelteKit, SSR included.
Snippet, wizard, or manual.
Lead with the fastest path — the copy-paste snippet with your token baked in. The wizard and manual setup stay available.
- STEP 1Copy-paste the snippet
Create a Svelte project and call setupTracePath in src/routes/+layout.svelte.
- STEP 2Run the wizard
npx tracepath-wizard installs @tracepath/svelte and edits the layout.
- STEP 3Manual path
npm install @tracepath/svelte, then call setupTracePath in your root layout.
A working +layout.svelte.
Taken from our own examples and docs — this is the actual shape of a Svelte integration.
<!-- src/routes/+layout.svelte -->
<script>
import { setupTracePath } from "@tracepath/svelte";
setupTracePath({
connectionString: "your-token@https://ingest.tracepath.dev/api/report",
});
</script>
<slot />Source: docs/pages/client/svelte/index.mdx in the TracePath repo. TODO-verify: snippet matches the latest SDK release before publishing.
Built for Svelte.
SSR-safe initialization (no browser guard needed)
getTracePath() context for components
Session recording on by default
Svelte 5 runes-compatible
Browse everything tagged #svelte →
Other frameworks
Instrument Svelte today.
Free plan, no credit card. First event in under five minutes.