Multiple traces using same traceId with Express plugin #2850
Answered
by
dyladan
mateodelnorte
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
dyladan
Mar 21, 2022
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mateodelnorte
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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