
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
ibm-appconfiguration-node-crash
Advanced tools
IBM Cloud App Configuration Crash SDK provides crash insights when integrated with your Node.js application. You can monitor and analyze the crashes and errors encountered in your Node application via the IBM Cloud App Configuration service dashboard by integrating the Crash SDK.
Note: Support for Crash Analytics has been withdrawn from the IBM Cloud App Configuration service.IBM Cloud App Configuration is a centralized feature management and configuration service on IBM Cloud for use with web and mobile applications, microservices, and distributed environments.
Instrument your Node application with App Configuration Crash SDK to discover problems in your application quickly.
Installation is done using the npm install command.
The Crash SDK uses ibm-appconfiguration-node-core as one of the pre-requisite.
$ npm install ibm-appconfiguration-node-core
$ npm install ibm-appconfiguration-node-crash
To import the module
const { AppConfigurationCore } = require ('ibm-appconfiguration-node-core');
const {
AppConfigurationCrash
} = require('ibm-appconfiguration-node-crash');
Initialize the Core SDK to connect with your App Configuration service instance.
const client = AppConfigurationCore.getInstance({
region: 'us-south',
guid: 'xxxxx-5f61-xxxx-9f97-xxxx',
apikey: 'abcd-1234xyz',
})
us-south for Dallas and eu-gb for London.Note: The AppConfigurationCore client can be
nullif any of the configurations are missing or invalid.
Initialize the Crash SDK to connect with your App Configuration service instance.
const { AppConfigurationCrash } = require('ibm-appconfiguration-node-crash')
const crashInstance = AppConfigurationCrash.getInstance('App Name')
where,
All kinds of errors such as Standard JavaScript errors, System errors, and User-specified errors triggered by application code and did not had an exception handling mechanism, bubbles all the way up to the event loop.
Adding a handler that is shown here will listen to such uncaught exceptions and report the errors to the App Configuration service.
/*
In the main file (app.js or index.js), add the following
*/
process.on('uncaughtException', function (err) {
crashInstance.reportCrash(err)
process.exit(1); //recommended
})
Warnings for unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a nonzero exit code. See here.
Whenever a promise is rejected and no error handler is attached or whose rejections have not yet been handled, Crash SDK can keep track of such rejected promises.
Adding a handler that is shown here will listen to Unhandled promise rejections and report the errors to the App Configuration service.
/*
In the main file (app.js or index.js), add the following
*/
process.on('unhandledRejection', function (err) {
crashInstance.reportCrash(err)
})
Express comes with a built-in error handler that takes care of any errors that might be encountered in the app. This default error-handling middleware function is added at the end of the middleware function stack. See here.
All the various kinds of errors such as Standard JavaScript errors and User-specified errors that are triggered by application code and did not had an exception handling mechanism bubbles all the way up to this errorHandler middleware.
Adding a handler that is shown here will listen and report the errors to the App Configuration service.
/*
At the end of the middleware function stack, add the below error-handling middleware function
*/
app.use(function (err, req, res, next) {
crashInstance.reportCrash(err)
// you can add your custom logic, after the crash data is reported
})
IBM
FAQs
IBM Cloud App Configuration Node.js Crash Analytics SDK
We found that ibm-appconfiguration-node-crash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.