The SDK records user sessions and sends them to Djaty servers. It records server requests, logs, HTTP requests, and exceptions and integrates with Express, Koa and Loopback.
$ npm install @djaty/djaty-nodejs
You can start using Djaty NodeJS SDK with the default configuration
by just including it at the root app file and passing the apiKey
and apiSecret
attributes as the following example:
const djaty = require('@djaty/djaty-nodejs');
djaty.init({
apiKey: 'API_KEY',
apiSecret: 'API_SECRET'
});
To use the NodeJS SDK inside Express and Koa based applications, please take a look at Official NodeJS SDK Docs
$ npm install
$ npm run build
$ npm run test
- Using console log directly inside the SDK logic will add the concole timeline item
to the active domain which will always be
djatyInternalErrorsDomain
and not the domain of the requestdjatyReqWrapDomain
(Which thereq
andres
objects are added to).