/

Error Guard

Capture and debug production errors with full context

by

ShipOS

·

Error Guard captures errors from your application and provides detailed context for debugging. See stack traces, user actions leading to errors, and environment details in one place. Get notifications when new errors occur or error rates spike.

Stop losing track of production issues. Error Guard catches JavaScript errors, API failures, and uncaught exceptions automatically. Group similar errors together and track resolution status across deployments.

Error Details

Every error includes the complete stack trace, source maps for minified code, and context about the user's session. See which browser, OS, and device experienced the error. View the user's journey leading up to the error with breadcrumbs.

import ErrorGuard from '@errorguard/sdk';

ErrorGuard.init({
  projectKey: process.env.ERROR_GUARD_KEY,
  environment: 'production',
  release: process.env.GIT_COMMIT
});

// Errors are caught automatically
// Add custom context
ErrorGuard.setUser({ id: user.id, email: user.email });
ErrorGuard.setTag('feature', 'checkout');

// Track custom errors
try {
  await processPayment();
} catch (error) {
  ErrorGuard.captureException(error, {
    level: 'critical',
    extra: { paymentId: payment.id }
  });
}
import ErrorGuard from '@errorguard/sdk';

ErrorGuard.init({
  projectKey: process.env.ERROR_GUARD_KEY,
  environment: 'production',
  release: process.env.GIT_COMMIT
});

// Errors are caught automatically
// Add custom context
ErrorGuard.setUser({ id: user.id, email: user.email });
ErrorGuard.setTag('feature', 'checkout');

// Track custom errors
try {
  await processPayment();
} catch (error) {
  ErrorGuard.captureException(error, {
    level: 'critical',
    extra: { paymentId: payment.id }
  });
}
import ErrorGuard from '@errorguard/sdk';

ErrorGuard.init({
  projectKey: process.env.ERROR_GUARD_KEY,
  environment: 'production',
  release: process.env.GIT_COMMIT
});

// Errors are caught automatically
// Add custom context
ErrorGuard.setUser({ id: user.id, email: user.email });
ErrorGuard.setTag('feature', 'checkout');

// Track custom errors
try {
  await processPayment();
} catch (error) {
  ErrorGuard.captureException(error, {
    level: 'critical',
    extra: { paymentId: payment.id }
  });
}

Issue Management

Mark errors as resolved, ignored, or assigned to team members. Create GitHub issues directly from error reports. Track which deployment introduced or fixed each error.

Alerts

Configure alert rules based on error frequency, affected user count, or error severity. Send notifications to Slack, email, or PagerDuty. Set up escalation policies for critical errors.

Performance Impact

Error Guard's SDK is lightweight and asynchronous. Error reporting doesn't slow down your application. Errors are batched and sent in the background.

Source map support makes debugging minified production code easy. ErrorGuard automatically maps errors back to original source files. See exact line numbers and variable names.

Create a free website with Framer, the website builder loved by startups, designers and agencies.