We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a733a15 commit b065040Copy full SHA for b065040
packages/browser/src/integrations/view-hierarchy.ts
@@ -115,7 +115,8 @@ export const viewHierarchyIntegration = defineIntegration((options: Options = {}
115
return {
116
name: 'ViewHierarchy',
117
processEvent: (event, hint) => {
118
- if (options.shouldAttach?.(event, hint) === false) {
+ // only capture for error events
119
+ if (event.type !== undefined || options.shouldAttach?.(event, hint) === false) {
120
return event;
121
}
122
0 commit comments