How to use the generateEventId function from raven

Find comprehensive JavaScript raven.generateEventId code examples handpicked from public code repositorys.

43
44
45
46
47
48
49
50
51
52
function notifySentryGlobal(ctx) {
  if (!raven.dsn) {
    log.info('Does not have global sentry');
    return;
  }
  ctx.event_id = raven.generateEventId();
  raven.send(ctx, (publishErr) => {
    if (publishErr) {
      log.error('Failed to publish error into global sentry: %s', publishErr.message);
      return;
fork icon21
star icon45
watch icon32