Using Aspecto SDK

The Aspecto SDK is an OpenTelemetry-based product.

Install our Node.js library using npm:

$ npm install @aspecto/opentelemetry

After obtaining your token here, before any other import, add the following call at the top of your app entry point:

JavaScript
TypeScript
JavaScript
require('@aspecto/opentelemetry')({
local:true,
aspectoAuth: '*your-token-goes-here*'
});
// ... other imports ...
TypeScript
import init from '@aspecto/opentelemetry';
init({
local: true,
aspectoAuth: '*your-token-goes-here*'
});
// ... other imports ...

Once the process starts, it will output the following link:

=====================================================================================================================================
| |
| 🕵️‍♀️See the live tracing stream at https://app.aspecto.io/app/live-flows/sessions?instanceId=14243e72-14dc-4255-87af-ef846b247578 |
| |
=====================================================================================================================================

Click on the link to open 'Live Flows' and see traces from all the microservices that are running on your environment. The link is valid for a limited period of time.

See the advanced page for specific configurations