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:

  1. Request/correlation ID propagation. Request IDs automatically attach to your own custom events, so they join the surrounding request in BadgerQL queries.
  2. Event context. You can add custom metadata to the events sent to Honeybadger Insights by using Honeybadger.setEventContext.
  3. Handlers and beforeEvent filtering. Use hooks to filter/exclude events before they're sent to Insights, synchronously or asynchronously.
  4. 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.

Back to changelog

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