timfish / sentry-node-minidump

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:TypeScript 69.1%Language:Rust 16.6%Language:JavaScript 14.4%