Honeybadger

Connecting

HONEYBADGER_API_KEY={key} node app.js

Just setting the env var in config will suffice.

Logging errors

You can use orka’s logger see logs to log errors to HB

logger.error(error, 'augment error message', { customKey: {}, action: 'action', component: 'logger-category', tags: ['tag'] });

any custom keys given will be added to context sent to HB.

You can add tags in 3 ways:

  • The error has a tags property
  • You pass tags like above
  • You add honeybadgerTags key with array of tags in requestContext