Skip to content

Multiple traces using same traceId with Express plugin #2850

Answered by dyladan
mateodelnorte asked this question in Q&A
Discussion options

You must be logged in to vote

Hard to tell from your example because the tracing file was pretty detailed but the file that required it was sort of glossed over but the most likely thing is that you're importing express before initializing tracing. It is very important that the tracing component is the first thing to load. I would recommend using the -r flag of node to start your application in order to ensure tracing is first rather than requiring the tracing file from your main app.js. node -r tracing.js app.js

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mateodelnorte
Comment options

Answer selected by mateodelnorte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants