After obtaining your token here, before any other import, add the following call at the top of your app entry point:
JavaScript
TypeScript
1
require('@aspecto/opentelemetry')({
2
local:true,
3
aspectoAuth:'*your-token-goes-here*'
4
});
5
// ... other imports ...
Copied!
1
import init from'@aspecto/opentelemetry';
2
init({
3
local:true,
4
aspectoAuth:'*your-token-goes-here*'
5
});
6
// ... other imports ...
Copied!
Send traffic to your service
So far, you have configured your application to send telemetry to Aspecto for any inbound or outbound requests. Next, you will need to make requests to your service in order to generate the telemetry that will be sent to Aspecto.
Interact with your application by making a few requests. Telemetry data should now appear in the Aspecto UI!