You will also need to instrument your applications with tracing libraries. You can take a look at OpenTelemetry for those.
If your applications are already instrumented, can you check basic Tempo metrics such as tempo_distributor_bytes_received_total to see if traces are reaching it? Does the instrumentation throw any errors when forwarding the traces?
HI mario.
So, until and unless the application is instrumented, there is no way I will get the traceID is it?
Also, will promtail work for that or I will need grafana agent for that?
Yes, that’s correct. You will need your applications instrumented with a tracing library to create traces. Otherwise, you won’t have data to visualise, even if you have a trace ID in your logs.
Promtail is a tool for log collection. It does not work with trace data. To forward traces to Tempo you have two options: 1) Send traces directly to Tempo 2) Use a tracing pipeline (e.g. Grafana Agent or OTel collector) to offload traces from your application and forward them to Tempo (Recommended).
You have some resources on how to get started with distributed traces here.