Raygun Adapter
Send captured errors to Raygun crash reporting.
Install
yarn add raygun4js
Activate
import { initialize, useAdapter } from 'unified-error-handling';
initialize();
await useAdapter('raygun', {
apiKey: 'your-api-key',
});
Config
| Field | Purpose |
|---|---|
apiKey | Your Raygun API key (required). |
The adapter dynamically imports raygun4js, initializes it with your API key, and forwards each captured error.
Notes
- If
raygun4jsis not installed, activation throwsFailed to load Raygun SDK…with the original import error preserved ascause. - Combine with breadcrumbs and
setUser()for richer crash reports — the adapter forwards both when supported.