sf-apm-lib
v1.0.2
Published
Snappyflow node modules
Downloads
23
Readme
sf-apm-lib
SnappyFlow NPM package
Installation
At your project directory, do the following.
- From npm:
$ npm install --save sf-apm-lib // npm
Then you should import the package as follows.
const Snappyflow = require('sf-apm-lib');
Usage
var sfObj = new Snappyflow(); // Initialize Snappyflow. By default intialization will pick profileKey, projectName and appName from sfagent config.yaml.
// Add below part to manually configure the initialization
let profileKey = '<Snappyflow Profile Key>';
let projectName = '<Snappyflow Project Name>';
let appName = '<Snappyflow App Name>';
sfObj.init(profileKey, projectName, appName);
let traceConfig = sfObj.getTraceConfig(); //Returns trace config
console.log(traceConfig);