khamidou / electron-breakpad-sentry Goto Github PK
View Code? Open in Web Editor NEWForward Electron crash reports to Sentry
License: BSD 3-Clause "New" or "Revised" License
Forward Electron crash reports to Sentry
License: BSD 3-Clause "New" or "Revised" License
Hi, I was very happy to come across this library and got it working in 5 minutes. Thanks for taking the time to make it public so other people can use it.
I have a question... after a user logs into my app, I'm trying to use crashReporter.setExtraParameters
(or the Windows/Linux equivalent as directed by Electron) to pass the user's ID and email address along with the crash report. This is so I can reach out to users that are having problems and apologize and fix the issue.
I have this code hooked up, but I don't see the extra data coming through in Sentry. I was wondering if this was ever something you tried. If it's just not built yet, I'll look into it a little more and figure out where we can add that functionality. Thanks again for this great library!
// Setup Electron crashReporter
const crashReporterOptions = {
productName: 'Command-I',
companyName: 'Command-I',
submitURL: `${process.env.CRASH_REPORT_URL}/crashreport`,
autoSubmit: true,
};
crashReporter.start(crashReporterOptions);
/**
* When user logs in, a `receive-credentials` event is fired containing the
* user's id and email address. Let's pass that to crashReporter.
*/
ipcMain.on('receive-credentials', (event, credentials) => {
log.info(`Main received receive-credentials for user ${credentials.id} (${credentials.email})`);
// Update crashReporter (WARN: macOS/Windows/Linux APIs differ)
if (process.platform === 'darwin') {
crashReporter.setExtraParameter('user_id', credentials.id);
crashReporter.setExtraParameter('user_email', credentials.email);
} else {
crashReporter.start({
...crashReporterOptions,
user_id: credentials.id,
user_email: credentials.email
});
}
});
@khamidou looks like it doesn't support Windows system.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.