⚙️ Node

Error tracking for Error tracking for Node.js

Express error handler, uncaught exception capture, and async context tracking. Full stack traces with source file paths.

Drop-in error handler

Add the Wevitos error handler to your Express app and every unhandled error is captured with full context — route, params, headers, and stack trace.

  • Express error handler middleware
  • Request URL, method, headers, and body
  • Uncaught exceptions and unhandled rejections
  • Async context tracking
app.js
const wevitos = require('wevitos');
const express = require('express');

wevitos.init({
  apiKey: 'wvt_...',
  environment: 'production',
});

const app = express();

// Your routes...

// Add error handler last
app.use(wevitos.errorHandler());

Catch what you want

Use wevitos.captureException() in try/catch blocks or promise chains to capture specific errors with custom context.

  • Manual exception capture
  • Custom tags and metadata
  • Works in any Node.js environment
service.js
try {
  await processPayment(order);
} catch (err) {
  wevitos.captureException(err, {
    tags: {
      orderId: order.id,
      provider: 'stripe',
    }
  });
}

Start tracking Node.js errors

npm install wevitos — up and running in seconds.