Sets annotation type to String, so the zipkin UI won't render base64

This commit is contained in:
Adrian Cole
2015-10-09 21:18:39 -07:00
parent 4e21bf1b35
commit c40c62498b

View File

@@ -154,7 +154,7 @@ public class ZipkinSpanListener {
List<BinaryAnnotation> l = new ArrayList<>();
for (Map.Entry<String, String> e : span.getAnnotations().entrySet()) {
BinaryAnnotation binaryAnn = new BinaryAnnotation();
binaryAnn.setAnnotation_type(AnnotationType.BYTES);
binaryAnn.setAnnotation_type(AnnotationType.STRING);
binaryAnn.setKey(e.getKey());
try {
binaryAnn.setValue(e.getValue().getBytes("UTF-8"));