Skip to content

Commit eec289b

Browse files
authored
fix: Call captureBreadcrumb for fetch after its done (#1197)
1 parent fa9d69e commit eec289b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/raven.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,15 +1280,15 @@ Raven.prototype = {
12801280
status_code: null
12811281
};
12821282

1283-
self.captureBreadcrumb({
1284-
type: 'http',
1285-
category: 'fetch',
1286-
data: fetchData
1287-
});
1288-
12891283
return origFetch.apply(this, args).then(function(response) {
12901284
fetchData.status_code = response.status;
12911285

1286+
self.captureBreadcrumb({
1287+
type: 'http',
1288+
category: 'fetch',
1289+
data: fetchData
1290+
});
1291+
12921292
return response;
12931293
});
12941294
};

0 commit comments

Comments
 (0)