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