GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(sveltekit): Document new `wrapServerRouteWithSentry` wrapper by Lms24 · Pull Request #10990 · getsentry/sentry-docs

Conversation

@Lms24

@Lms24 Lms24 commented Aug 6, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

This PR adds documentation for the new wrapServerRouteWithSentry function we added in getsentry/sentry-javascript#13247. While adding this, I slightly restructured the Manual Setup page of the SvelteKit guide to now have "Automatic Instrumentation" and "Manual Instrumentation" headings on the same level.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vercel

vercel Bot commented Aug 6, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 9, 2024 9:36am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 9, 2024 9:36am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
develop-docs ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2024 9:36am
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Lms24
Lms24 requested review from a team, AbhiPrasad and nicohrubec and removed request for a team August 6, 2024 09:06
@vercel
vercel Bot deployed to Preview – changelog August 6, 2024 09:06
View deployment
Lms24
Lms24 commented Aug 6, 2024
View reviewed changes
Comment thread docs/platforms/javascript/guides/sveltekit/manual-setup.mdx Outdated
<Note>

Available since version `7.91.0`
Available since `8.24.0`

@Lms24 Lms24 Aug 6, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder for myself to double check that this is the actual version

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@nicohrubec nicohrubec Aug 9, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like it's 8.25.0

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Lms24 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@Lms24 Lms24 self-assigned this Aug 6, 2024
@Lms24 Lms24 mentioned this pull request Aug 6, 2024
feat(sveltekit): Add wrapServerRouteWithSentry wrapper getsentry/sentry-javascript#13247
Merged
@codecov

codecov Bot commented Aug 6, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Bundle Report

Changes will decrease total bundle size by 15 bytes ⬇️

Bundle name Size Change
sentry-docs-server 8.26MB 6 bytes ⬇️
sentry-docs-edge-server 254.16kB 3 bytes ⬇️
sentry-docs-client 6.25MB 6 bytes ⬇️
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vercel
vercel Bot deployed to Preview – sentry-docs August 6, 2024 09:21
View deployment
nicohrubec
nicohrubec approved these changes Aug 9, 2024
View reviewed changes
Comment thread docs/platforms/javascript/guides/sveltekit/manual-setup.mdx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/platforms/javascript/guides/sveltekit/manual-setup.mdx Outdated
<Note>

Available since version `7.91.0`
Available since `8.24.0`

@nicohrubec nicohrubec Aug 9, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like it's 8.25.0

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Lms24 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread docs/platforms/javascript/guides/sveltekit/manual-setup.mdx Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/platforms/javascript/guides/sveltekit/manual-setup.mdx
```

##### Disable Client-side `fetch` Proxy Script
```typescript {filename:+server.ts} {1,3}

@nicohrubec nicohrubec Aug 9, 2024

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this duplicated for ts and js?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Lms24 Lms24 Aug 9, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because you can use JS and TS simultaneously in SvelteKit. But most of these snippets have no TS-specific syntax, so it might be better to switch to a shared filename.(js|ts) snippet

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Lms24 Lms24 Aug 9, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm realizing, we're a bit inconsistent with the languages and even diverge a bit. I'll dedupe the snippets.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@Lms24 Lms24 Aug 9, 2024

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened an additional PR because I streamlined some other things while removing the TS stuff: #11038

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nicohrubec reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Lms24
Lms24 commented Aug 9, 2024
View reviewed changes
Comment thread docs/platforms/javascript/guides/sveltekit/manual-setup.mdx Resolved

Uh oh!

There was an error while loading. Please reload this page.

@vercel
vercel Bot deployed to Preview – changelog August 9, 2024 08:49
View deployment
@vercel
vercel Bot had a problem deploying to Preview – sentry-docs August 9, 2024 09:11 Failure
@Lms24 Lms24 mentioned this pull request Aug 9, 2024
ref(sveltekit): Improve manual setup code snippets and structure #11038
Merged
2 of 6 tasks
Lms24 and others added 3 commits August 9, 2024 11:18
@Lms24
feat(sveltekit): Document new wrapServerRouteWithSentry wrapper
8f12c70
@Lms24 @nicohrubec
Apply suggestions from code review
8f82a74
Co-authored-by: Nicolas Hrubec <[email protected]>
@Lms24
Update docs/platforms/javascript/guides/sveltekit/manual-setup.mdx
e76bb5f
@Lms24
Lms24 force-pushed the lms/feat-sveltekit-wrapServerRouteWithSentry-docs branch from c603942 to e76bb5f Compare August 9, 2024 09:18
@vercel
vercel Bot deployed to Preview – changelog August 9, 2024 09:21
View deployment
@vercel
vercel Bot deployed to Preview – sentry-docs August 9, 2024 09:36
View deployment
@Lms24
Lms24 merged commit 96d0b78 into master Aug 9, 2024
@Lms24
Lms24 deleted the lms/feat-sveltekit-wrapServerRouteWithSentry-docs branch August 9, 2024 11:21
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2024

This branch was successfully deployed

2 active deployments
Preview – sentry-docs — e76bb5f2 Deployed Aug 9, 2024 by vercel[bot]
View deployment
Preview – changelog — e76bb5f2 Deployed Aug 9, 2024 by vercel[bot]
View deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@nicohrubec nicohrubec nicohrubec approved these changes
@AbhiPrasad AbhiPrasad Awaiting requested review from AbhiPrasad AbhiPrasad was automatically assigned from getsentry/team-javascript-sdks

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Lms24 Lms24

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Lms24 @nicohrubec
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.