0.0.4 • Published 3 years ago
@shortloop/node-sdk v0.0.4
Shortloop SDK for Node
@shortloop/node provides client implementation of Shortloop SDK for express based Node applications.
Requirements
Current SDK version requires Node v16 or higher.
Installation
@shortloop/node can be installed like any other npm package through npm:
$ npm install @shortloop/nodeUsage
Once the package is installed, you can import the library using import or require approach:
import ShortloopSDK from '@shortloop/node'ORconst ShortloopSDK = require('@shortloop/node')
Initialize the sdk
Example:const app = express(); const sdk = ShortloopSDK.init({ url: 'http://localhost:8080', applicationName: 'test-service-node', loggingEnabled: true (optional), }); app.use(express.json()); //any other middlewares app.use(sdk.capture());