Closed laci9 closed 7 months ago
Hi @laci9, I unfortunately don't have any experience with instrumenting the TeaStore via Jaeger in Kubernetes.
Could you add a screenshot/example traces to better highlight your issue? Maybe someone with more Jaeger experience comes across this issue :)
Hi @SimonEismann, thank you for your answer.
I've used this tutorial to set up Jaeger for monitoring and in the screenshots below can be seen that all operation names are just op. I'm using Jaeger version 1.49 and after some investigation I've found out that Jaeger is not using openTracing anymore (from version 1.48 higher) but openTelemetry, so that might be causing issues, but I'm not really sure if that is the root cause as all traces have correct structure.
EDIT: Jaeger should still support openTracing based on 1.49 documentation
I've found the root cause. When building span, it is hardcoded to set the oparation name to op. Link to the source code, where it is set: file
I solved my issue by adding a parameter to the buildSpanFromHeaders method signature for operation name. Then from extractCurrentSpan(HttpServletRequest request) can be sent also an URL or URI of the request as the operation name.
Glad to hear that you were able to resolve this! Could you open up a PR with your changes? I think this might be useful for other users as well. Hardcoding the operation name to op seems ... not optimal :)
Hi, I've tried to trace the system with Jaeger by sidecar injection. In Jaeger UI, I can see all the traces with correct spans but everything has the same operation name op. Is it possible to trace the system and be able to see correct operation names and has someone some experience with that? Thank you for your answer.