-
Notifications
You must be signed in to change notification settings - Fork 995
Sf import #661
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
Sf import #661
Changes from all commits
b72f26c
1cdf904
d2e3d70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,18 @@ | ||
| import { handleErrorWithSentry, replayIntegration } from "@sentry/sveltekit"; | ||
| import * as Sentry from '@sentry/sveltekit'; | ||
| import { env } from '$env/dynamic/public'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
|
|
||
| Sentry.init({ | ||
| dsn: 'https://59bf64c93be48f6cd30087fef7bbc54f@o4509449489088512.ingest.de.sentry.io/4510910257496144', | ||
| const dsn = env.PUBLIC_SENTRY_DSN || ''; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||
|
|
||
| Sentry.init({ | ||
| dsn, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||
| enabled: !!dsn, | ||
| tracesSampleRate: 1.0, | ||
|
|
||
| // Enable logs to be sent to Sentry | ||
| enableLogs: true, | ||
|
|
||
| // This sets the sample rate to be 10%. You may want this to be 100% while | ||
| // in development and sample at a lower rate in production | ||
| replaysSessionSampleRate: 0.1, | ||
|
|
||
| // If the entire session is not sampled, use the below sample rate to sample | ||
| // sessions when an error occurs. | ||
| replaysOnErrorSampleRate: 1.0, | ||
|
|
||
| // If you don't want to use Session Replay, just remove the line below: | ||
| integrations: [replayIntegration()], | ||
|
|
||
| // Enable sending user PII (Personally Identifiable Information) | ||
| // https://docs.sentry.io/platforms/javascript/guides/sveltekit/configuration/options/#sendDefaultPii | ||
| sendDefaultPii: true, | ||
| }); | ||
|
|
||
| // If you have a custom error handler, pass it to `handleErrorWithSentry` | ||
| export const handleError = handleErrorWithSentry(); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,11 @@ | ||
| import * as Sentry from '@sentry/sveltekit'; | ||
| import { env } from '$env/dynamic/public'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'import' is only available in ES6 (use 'esversion: 6'). |
||
|
|
||
| Sentry.init({ | ||
| dsn: 'https://59bf64c93be48f6cd30087fef7bbc54f@o4509449489088512.ingest.de.sentry.io/4510910257496144', | ||
| const dsn = env.PUBLIC_SENTRY_DSN || ''; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||
|
|
||
| Sentry.init({ | ||
| dsn, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'object short notation' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). |
||
| enabled: !!dsn, | ||
| tracesSampleRate: 1.0, | ||
|
|
||
| // Enable logs to be sent to Sentry | ||
| enableLogs: true, | ||
|
|
||
| // uncomment the line below to enable Spotlight (https://spotlightjs.com) | ||
| // spotlight: import.meta.env.DEV, | ||
| }); | ||
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.
'import' is only available in ES6 (use 'esversion: 6').