Skip to content
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

fix: breakpoint not working #8236

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/insomnia/src/main/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as Sentry from '@sentry/electron/main';

import * as session from '../account/session';
import { isDevelopment } from '../common/constants';
import { type ChangeBufferEvent, database as db } from '../common/database';
import { SENTRY_OPTIONS } from '../common/sentry';
import * as models from '../models/index';
Expand Down Expand Up @@ -54,7 +55,7 @@ export function initializeSentry() {
*/
shouldSend: () => enabled,
},
integrations: [
integrations: isDevelopment() ? [] : [
Sentry.anrIntegration({ captureStackTrace: true }),
],
});
Expand Down
3 changes: 2 additions & 1 deletion packages/insomnia/src/ui/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as Sentry from '@sentry/electron/renderer';

import { isDevelopment } from '../common/constants';
import { SENTRY_OPTIONS } from '../common/sentry';

export function initializeSentry() {
Expand All @@ -10,7 +11,7 @@ export function initializeSentry() {
// set 0.1 sample rate for traces, only send 10% of traces, and check whether the limit is exceeded
// https://konghq.sentry.io/settings/billing/overview/?category=transactions
tracesSampleRate: 0.1,
anrDetection: {
anrDetection: isDevelopment() ? false : {
captureStackTrace: true,
},
});
Expand Down
Loading