forked from tidepool-org/uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gniezen/electron-reporting-test' into libre-rollbar
- Loading branch information
Showing
10 changed files
with
206 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* global __VERSION_SHA__ */ | ||
|
||
import Rollbar from 'rollbar/dist/rollbar.umd'; | ||
|
||
let rollbar = new Rollbar({ | ||
accessToken: '1843589282464f4facd43f794c8201a8', | ||
captureUncaught: true, | ||
payload: { | ||
environment: 'electron_renderer', | ||
client: { | ||
javascript: { | ||
code_version: __VERSION_SHA__, | ||
guess_uncaught_frames: true | ||
} | ||
} | ||
}, | ||
// to deal with URI's as local filesystem paths, we use the "many domain" transform: | ||
// https://rollbar.com/docs/source-maps/#using-source-maps-on-many-domains | ||
transform: function(payload) { | ||
var trace = payload.body.trace; | ||
if (trace && trace.frames) { | ||
for (var i = 0; i < trace.frames.length; i++) { | ||
var filename = trace.frames[i].filename; | ||
if (filename) { | ||
trace.frames[i].filename = 'http://dynamichost/dist/bundle.js'; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
); | ||
|
||
export default rollbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.