Sending traces to collector #2363
Replies: 2 comments
-
Did you try to set diag logs on? Sometimes that will help you pinpoint the problem easier. You can do this by adding this line first thing in your instrumentation setup file (tracing.js for your case).
|
Beta Was this translation helpful? Give feedback.
-
That is good also to update your dependencies and tracing.js code from |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to set up a tracing installation for the Hello world example from Lightstep https://lightstep.com/blog/opentelemetry-nodejs/:
My tracing.js looks as follows:
My collector is listening on the localhost:4317, the config file is as follows:
I am running otelcontribcol_darwin_amd64 version 23. It sends the traces to my logz.io account. It works for Java and Python apps.
With node.js I am stuck. The terminal says the node is running on localhost:8080, but it just doesn't send any traces anywhere. When I change the output to console, it does show me the traces. So the problem is somewhere in the communication between the collector and instrumentation.
Could you please advise as to what I could try to fix this?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions