Git Product home page Git Product logo

electron-breakpad-sentry's People

Contributors

khamidou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

electron-breakpad-sentry's Issues

Is additional data from `crashReporter.setExtraParameters` passed through as extra context in Sentry?

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
    });
  }
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.