aware-sdk-node
v0.0.125
Published
Aware SDK for Node JS backends
Downloads
9
Readme
Aware SDK For NodeJS
This module enables Aware full stack recording capability for NodeJS based web services.
Installation Guide
Prerequisite: Enable OpenTelemetry in your Node web service and configure to export tracing data to Aware servers. Follow steps here.
- Run the following to install the SDK:
npm install aware-sdk-node@latest
- Use Aware SDK in your code as follows:
const awareSdk=require('aware-sdk-node');
...
const app = express();
...
app.use(awareSdk(<config_file_path>));
Configuration Guide
Aware SDK behaviour can be configured via a yml file passed in to awareSdk() function. Read here for more details on how to configure various aspects of the SDK behaviour such as request field masking, ignoring specific headers etc. via the configuration file.
Example
An example of NodeJS based webservice integrating with OTel and Aware SDK can be found at the demo project at: https://github.com/awarelabshq/shoplify/tree/main/riskservice