-
Notifications
You must be signed in to change notification settings - Fork 714
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
additional annotations are shown twice in Zipkin GUI #136
Comments
the weird part is that the existing scribe code did this inside collect (basically the same code as you have)! You aren't adding to defaultAnnotations anymore, right? if (!defaultAnnotations.isEmpty()) {
for (final BinaryAnnotation ba : defaultAnnotations) {
span.addToBinary_annotations(ba);
}
} |
No, I don't. A breakpoint in that section never triggers, so defaultAnnotation is indeed empty |
cool thx for verifying |
What does the JSON API response look like? Is the problem at zipkin-query or in the frontend UI? |
root issue was that the client and server were both logging the same binary annotation. Binary annotations look like a dict String->String, but there's actually no unique constraint. I recommended adding the correlationId only on the server span (ie. looking for "sr" annotation and doing it then). |
+1. Alternatively, live with the fact/problem that it's duplicated in the UI 😉 |
well, in this case neither binary annotation had a host/endpoint attached :P but yeah get what you mean. |
Following the advice in the 3.4 release notes, I subclass the span collector in order to decorate the collect method. The annotation added picks a value from MDC, but I guess that is irrelevant.
However, the annotation is listed twice in the GUI.
The text was updated successfully, but these errors were encountered: