This npm package is an auto-instrumentation agent for your applications to generate and export traces. It is a pre-requisite for Cascade users who wish to deploy their applications on AWS ECS with observability, and is compatible with AWS X-Ray as the tracing backend.
- install the cascade-agent package
npm install cascade-agent
- require
cascade-agent
and specify the name of the service at the top of each service's server code
require('cascade-agent')('my-service');
- prior to deployment on ECS, you will be required to provide the following AWS user credentials:
AWS_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
That's it! Head over to Cascade Compose to finish deploying your application and start viewing traces.