Use this lib from our SDK to customize your Gateway traces

const gateway = require('linkapi-sdk/core/trace');

await gateway.trace({
  status: 'SUCCESS', // THIS WILL BE SUCCESS EMPTY OR ERROR
  name: 'Trace 1', // NAME THAT U CAN SEE IN THE LOGS
  data: {} // THIS CAN BE A STRING, NUMBER, OBJECT OR ARRAY
});

When creating a custom trace, you can view it through the monitoring tab as in the image below:

1693