Skip to content

Commit fe32c0d

Browse files
authored
fix(electron): A couple of Electron fixes (#15856)
This PR: - Moves `enableLogs` out of `_experimental` - Includes config for Utility processes - Closes getsentry/sentry-electron#1254
1 parent a573310 commit fe32c0d

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

docs/platforms/javascript/guides/electron/index.mdx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Sentry.init({
5656
dsn: "___PUBLIC_DSN___",
5757
// ___PRODUCT_OPTION_START___ logs
5858
// Enable logs to be sent to Sentry
59-
_experiments: { enableLogs: true },
59+
enableLogs: true,
6060
// ___PRODUCT_OPTION_END___ logs
6161
});
6262
```
@@ -107,7 +107,20 @@ Sentry.init({
107107
// ___PRODUCT_OPTION_START___ logs
108108

109109
// Enable logs to be sent to Sentry
110-
_experiments: { enableLogs: true },
110+
enableLogs: true,
111+
// ___PRODUCT_OPTION_END___ logs
112+
});
113+
```
114+
115+
### Configure any Utility Processes
116+
117+
```javascript
118+
import * as Sentry from "@sentry/electron/utility";
119+
120+
Sentry.init({
121+
// ___PRODUCT_OPTION_START___ logs
122+
// Enable logs to be sent to Sentry
123+
enableLogs: true,
111124
// ___PRODUCT_OPTION_END___ logs
112125
});
113126
```

platform-includes/logs/setup/javascript.electron.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as Sentry from "@sentry/electron/main";
88
Sentry.init({
99
dsn: "___PUBLIC_DSN___",
1010
// Enable logs to be sent to Sentry
11-
_experiments: { enableLogs: true },
11+
enableLogs: true,
1212
});
1313
```
1414

@@ -20,6 +20,6 @@ import * as Sentry from "@sentry/electron/renderer";
2020
Sentry.init({
2121
dsn: "___PUBLIC_DSN___",
2222
// Enable logs to be sent to Sentry
23-
_experiments: { enableLogs: true },
23+
enableLogs: true,
2424
});
2525
```

0 commit comments

Comments
 (0)