We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e29c63 + da595c0 commit 83481afCopy full SHA for 83481af
1 file changed
src/init.js
@@ -28,6 +28,17 @@ import { loadState } from '@nextcloud/initial-state'
28
29
import Logger from './logger'
30
31
+const attachErrorIntegration = {
32
+ name: 'AttachErrorIntegration',
33
+ processEvent(event, hint, client) {
34
+ if (hint.originalException) {
35
+ event.extra ??= {}
36
+ event.extra['error'] = hint.originalException
37
+ }
38
+ return event
39
+ },
40
+}
41
+
42
try {
43
const dsn = loadState('sentry', 'dsn')
44
@@ -36,6 +47,9 @@ try {
47
} else {
48
const config = {
49
dsn,
50
+ integrations: [
51
+ attachErrorIntegration,
52
+ ],
53
}
54
55
if (typeof OC.config.version !== 'undefined') {
0 commit comments