N
Nuxt15mo ago
dmarr

Using DataDog (dd-trace)

Has anyone had success using the dd-trace package with nuxt 3? I am trying to do some tracing, but I don't see anything happening when I build and then start the server. I have tried several methods to initialize the dd-trace package. Specifically, I would expect this to show the configuration:
DD_TRACE_STARTUP_LOGS=true node --require dd-trace/init node_modules/.bin/nuxi start
DD_TRACE_STARTUP_LOGS=true node --require dd-trace/init node_modules/.bin/nuxi start
This does show the trace I expect though:
DD_TRACE_STARTUP_LOGS=true node --require dd-trace/init .output/server/index.mjs
DD_TRACE_STARTUP_LOGS=true node --require dd-trace/init .output/server/index.mjs
I guess since the dd-trace module has to be the first thing run, the nuxi binary somehow prevents that.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server