We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18a12ba commit faf038bCopy full SHA for faf038b
packages/integrations/src/vue.ts
@@ -87,12 +87,12 @@ export class Vue implements Integration {
87
}
88
89
if (getCurrentHub().getIntegration(Vue)) {
90
- getCurrentHub().withScope(scope => {
91
- Object.keys(metadata).forEach(key => {
92
- scope.setExtra(key, metadata[key]);
+ // This timeout makes sure that any breadcrumbs are recorded before sending it off the sentry
+ setTimeout(() => {
+ getCurrentHub().withScope(scope => {
93
+ scope.setContext('vue', metadata);
94
+ getCurrentHub().captureException(error);
95
});
-
- getCurrentHub().captureException(error);
96
97
98
0 commit comments