Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 662 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 662 Bytes

sentry-node-minidump

GitHub Actions Workflow Status

If you use native Node modules, you may want to capture minidumps to Sentry if they segfault.

This package provides a Sentry integration for the Node SDK that captures and sends minidumps when the process crashes.

import * as Sentry from '@sentry/node';
import { nodeMinidumpIntegration, causeCrash } from 'sentry-node-minidump';


Sentry.init({
  dsn: '__DSN__',
  integrations: [nodeMinidumpIntegration()],
});

setTimeout(() => {
  causeCrash();
}, 5_000);