- if(record.data.exception) {
- window.Raven.captureException(record.data.exception);
- } else {
- Object.keys(record.data || {}).forEach(function(key) {
- ravenData[key] = record.data[key];
+ Object.keys(record.data || {})
+ .filter(function(key) {return key !== 'exception';})
+ .forEach(function(key) {
+ ravenData.tags[key] = record.data[key];