You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A great feature of Datadog is to correlate traces and logs to make troubleshooting easier.
To take advantage of this, you will need to:
install the dd-trace package
import it and init it with logInjection:true.
BuffLog will append automatically the traces to the logs (only within a request)
// make sure to put those lines at the very beginning of your serviceimporttracerfrom"dd-trace";tracer.init({// will automatically append the traces to BuffLoglogInjection: true// ... all other options...});
Use bufflog middleware with express
constapp=express();app.use(Bufflog.middleware())
About
logger for all javascript and typescript Buffer services