Follow trace from frontend to backend #1842
-
Hey guys, I'm quite new to opentelemetry and tracing in general. My goal is to follow user journeys through the whole technology stack (FE, BE, maybe other BEs, any kind of DB). I guess, this is what tracing is all about. Both sides alone work fine. The traces are delivered to Jaeger where I can see them. Do you have any tipps? I would have expected the frontend http calls to the backend to have any kind of headers about the trace, but there are none. I got all my code in this repo. The frontend part is here and the backend instrumentation is done during the start of the java app here. I'd be glad for any kind of help. As I noted, the whole idea of opentelemetry and tracing in general is quite new to me. Links to resources are helpful as well of course. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
To "connect" frontend and backend you need to configure some propagator - it doesn't look like you have it.
Not sure about java backend if they propagate this by default or not, I can assume only it should work fine. |
Beta Was this translation helpful? Give feedback.
To "connect" frontend and backend you need to configure some propagator - it doesn't look like you have it.
Check
examples/tracer-web
you will find things like B3Propagatorfor example
Not sure about java backend if they propagate this by default or not, I can assume only it should work fine.