Skip to content

docs: add sveltekit backend instrumentation - #10600

Open
Ghostofcaldera wants to merge 1 commit into
highlight:mainfrom
Ghostofcaldera:add-sveltekit-backend-docs
Open

Ghostofcaldera wants to merge 1 commit into
highlight:mainfrom
Ghostofcaldera:add-sveltekit-backend-docs

Conversation

@Ghostofcaldera

Copy link
Copy Markdown

This PR adds SvelteKit backend instrumentation documentation to the quickstart guide.

Changes:

  • Add @highlight-run/node to the package installation step
  • Add backend instrumentation code snippet for hooks.server.ts with:
    • H.init() initialization
    • H.runWithHeaders() to preserve request context
    • handleError hook to report server errors with H.consumeError()
  • Replace generic setupBackendSnippet with SvelteKit-specific svelteKitBackendInstrumentationSnippet

Fixes #8032

@changeset-bot

changeset-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 95a267f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Ghostofcaldera

Copy link
Copy Markdown
Author

/claim #8032

@Ghostofcaldera

Copy link
Copy Markdown
Author

@highlight/maintainers This PR is ready for review. It adds SvelteKit backend instrumentation documentation as requested in #8032. The changes:

  1. Add @highlight-run/node to the package installation step
  2. Add a complete hooks.server.ts example with:
    • H.init() initialization
    • H.runWithHeaders() to preserve request context
    • handleError hook with H.consumeError() for server error reporting
  3. Replace generic backend snippet with SvelteKit-specific documentation

Please review and merge to claim the bounty. /claim #8032

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

document sveltekit backend instrumentation

1 participant