JavaScript integrations for Insights
Honeybadger Insights now fully supports JavaScript across various frameworks.
Most importantly, you can capture inbound HTTP requests from Node.js and serverless applications and make them available for querying, visualization, and dashboards.
Automatic instrumentation is off by default. Enable it with:
Honeybadger.configure({
apiKey: process.env.HONEYBADGER_API_KEY,
insights: {
enabled: true,
http: true,
console: false,
},
});
When console is enabled, logs are also forwarded to Insights.
We also introduced several new configuration options:
- Request/correlation ID propagation. Request IDs automatically attach to your own custom events, so they join the surrounding request in BadgerQL queries.
- Event context. You can add custom metadata to the events sent to Honeybadger Insights by using
Honeybadger.setEventContext. - Handlers and
beforeEventfiltering. Use hooks to filter/exclude events before they're sent to Insights, synchronously or asynchronously. - Sampling. New controls for managing event volume/quota consumption with
sampleRatePercentage.
There’s also new dedicated documentation for wiring up HTTP instrumentation in Next.js apps!
JS now joins our other supported languages and frameworks for Honeybadger Insights. You can read more about how to set up automatic HTTP instrumentation and more in the documentation.
Try Honeybadger for FREE
Honeybadger is full-stack application monitoring that helps developers move fast and fix things. Get set up in minutes and check monitoring off your to-do list.
Easy 5-minute setup — No credit card required