-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[jaeger-query] Leading zeros stripped from trace IDs #1578
Comments
Can you explain why this is a problem that 0s are stripped? |
The trace IDs are treated as strings, not numbers. Because they don't match, various aspects of the UI state do not work out, like referring from a span to the UI state for the trace the span is contained within. |
I am asking what user-facing problems this issue is trying to fix, not the internal implementation details. |
Thank you for the clarification. Collapsing and expanding parents. |
So currently this is by-design behavior of the TraceID type - its The change does break a lot of unit tests though. |
I had discussed this offline with @tiffon and came up with the alternative of the UI doing a 302 redirect from any traceID with leading 0s to a canonical traceID (shortest string representation). Do you think it's a reasonable approach? |
That would be a good thing to do in any case, because even if we make a fix on the server side, people might look up trace by ID they get from the logs, which could have leading 0s stripped. I don't think it would be a good idea to reject requests on the server if |
I just noticed this thread, because I think I'm running into this problem in our enterprise. Assuming this is the same problem I'm seeing, this issue is not a cosmetic issue. It appears that we are generating logs between different services that sometimes have the leading zero, and sometimes do not. When we searched for a particular trace-id in our Splunk instance, we found log entries associated with the "client" service, but not the "server" service. I then dug into the actual logs and did some pattern analysis, and that's when I discovered that the logs in the "server" service had the correct trace-id, but with the leading zero removed. If it matters, we appear to be using Jaeger version 0.33.1. |
Requirement - what kind of business use case are you trying to solve?
I would like to view traces in Jaeger UI where the trace ID has leading 0s.
Problem - what in Jaeger blocks you from solving the requirement?
When jaeger-query returns data for traces where there are leading 0s in the trace ID, the leading 0s are stripped from the trace ID, within the data. E.g. for a trace with ID
0123
, all of the spans returned refer to trace ID123
.For each trace returned by jaeger-query, this applies to:
Proposal - what do you suggest to solve the problem or improve the existing situation?
The zeros should not be stripped.
The text was updated successfully, but these errors were encountered: