-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
feat(onboarding): Prepare JavaScript SDK v11 onboarding #125193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b9804e9
chore(onboarding): Prepare JavaScript SDK v11 integration
andreiborza 218bc1e
feat(onboarding): Update JS browser onboarding for SDK v11 (#123878)
msonnb e2d367f
fix(onboarding): Update Vue onboarding for SDK v11 (#123889)
JPeer264 cbd6ee4
fix(onboarding): Update Astro requirements for SDK v11 (#123880)
JPeer264 ed5bfea
feat(onboarding): Offer one Cloudflare platform in the pickers (#123768)
JPeer264 6f38078
feat(onboarding): Add Remix 2.x support | remove 1.x support (#123882)
JPeer264 a8bbc9f
feat(onboarding): Update Node onboarding for SDK v11 (#123877)
JPeer264 cd1d496
feat(onboarding): Update Bun onboarding for SDK v11 (#123797)
JPeer264 301d492
ref(onboarding): Drop the Express error handler for v11 (#123779)
andreiborza 45627ce
ref(onboarding): Fix the SolidStart server instrument file setup (#12…
andreiborza 444e3b7
ref(onboarding): Update the Hapi onboarding for v11 (#123836)
andreiborza cf13725
ref(onboarding): Update the Koa onboarding for v11 (#123845)
andreiborza 2c96432
ref(onboarding): Update the Fastify onboarding for v11 (#123826)
andreiborza edc4873
feat(onboarding): Update Next.js onboarding for SDK v11 (#123911)
chargome eb18af6
feat(onboarding): Update Deno onboarding for SDK v11 (#123772)
JPeer264 b9ce9a7
fix(onboarding): Update Ember onboarding for SDK v11 (#123896)
JPeer264 40c4933
ref(onboarding): Remove Connect onboarding | keep existing Connect pr…
andreiborza ee6aaab
Use instrument.server.ts for SolidStart agent monitoring
andreiborza 23df131
fix(onboarding): Show Vite setup in Cloudflare logs onboarding (#125298)
JPeer264 65daf41
fix(onboarding): Show where Cloudflare Pages users put the verify sni…
JPeer264 c7a9ce2
ref(onboarding/agents): Make dataCollection an explicit step for JS p…
s1gr1d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
static/app/components/onboarding/gettingStartedDoc/utils/index.spec.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| import { | ||
| getJsDataCollectionDocsLink, | ||
| isJavaScriptPlatform, | ||
| } from 'sentry/components/onboarding/gettingStartedDoc/utils'; | ||
|
|
||
| describe('isJavaScriptPlatform', () => { | ||
| it.each([ | ||
| 'javascript', | ||
| 'javascript-nextjs', | ||
| 'node', | ||
| 'node-express', | ||
| 'bun', | ||
| 'deno', | ||
| 'electron', | ||
| 'capacitor', | ||
| 'ionic', | ||
| ])('accepts %s', platform => { | ||
| expect(isJavaScriptPlatform(platform)).toBe(true); | ||
| }); | ||
|
|
||
| it.each([ | ||
| 'python', | ||
| 'python-fastapi', | ||
| 'php-laravel', | ||
| 'other', | ||
| 'go', | ||
| // React Native is JavaScript-based, but its docs do not cover `dataCollection`. | ||
| 'react-native', | ||
| undefined, | ||
| ])('rejects %s', platform => { | ||
| expect(isJavaScriptPlatform(platform)).toBe(false); | ||
| }); | ||
| }); | ||
|
|
||
| describe('getJsDataCollectionDocsLink', () => { | ||
| const BASE = 'https://docs.sentry.io/platforms/javascript'; | ||
|
|
||
| it.each([ | ||
| ['javascript-nextjs', `${BASE}/guides/nextjs/configuration/options/#dataCollection`], | ||
| ['node', `${BASE}/guides/node/configuration/options/#dataCollection`], | ||
| ['node-express', `${BASE}/guides/express/configuration/options/#dataCollection`], | ||
| ['bun', `${BASE}/guides/bun/configuration/options/#dataCollection`], | ||
| // Keys whose guide slug differs from the platform key | ||
| ['node-awslambda', `${BASE}/guides/aws-lambda/configuration/options/#dataCollection`], | ||
| [ | ||
| 'node-azurefunctions', | ||
| `${BASE}/guides/azure-functions/configuration/options/#dataCollection`, | ||
| ], | ||
| [ | ||
| 'node-gcpfunctions', | ||
| `${BASE}/guides/gcp-functions/configuration/options/#dataCollection`, | ||
| ], | ||
| [ | ||
| 'node-cloudflare-workers', | ||
| `${BASE}/guides/cloudflare/configuration/options/#dataCollection`, | ||
| ], | ||
| // Legacy key of the merged Cloudflare platform | ||
| [ | ||
| 'node-cloudflare-pages', | ||
| `${BASE}/guides/cloudflare/configuration/options/#dataCollection`, | ||
| ], | ||
| ['ionic', `${BASE}/guides/capacitor/configuration/options/#dataCollection`], | ||
| ])('maps %s to its guide', (platform, expected) => { | ||
| expect(getJsDataCollectionDocsLink(platform)).toBe(expected); | ||
| }); | ||
|
|
||
| it.each(['javascript', 'other', undefined])( | ||
| 'falls back to the canonical page for %s', | ||
| platform => { | ||
| expect(getJsDataCollectionDocsLink(platform)).toBe( | ||
| `${BASE}/configuration/options/#dataCollection` | ||
| ); | ||
| } | ||
| ); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.