This repo shows how to add Subtrace to a sample SvelteKit app. Subtrace connects your server to Chrome DevTools so that you can inspect the status, headers, payload, and latency of each request.
Clone this repo, and download Subtrace on your machine:
curl -fSLO "https://subtrace.dev/download/$(uname -s)/$(uname -m)/subtrace" && chmod +x ./subtraceThen get a SUBTRACE_TOKEN from the Subtrace dashboard
for free and set it as an environment variable.
# get a tracer token for free at https://subtrace.dev/dashboard
export SUBTRACE_TOKEN=subt_...xxxxxStart the SvelteKit app with Subtrace.
npm install
npm run build
./subtrace run -- npm run devThat's it! You can now visit localhost:5173 and make requests to the app that show up on the Subtrace dashboard in realtime: