Merge pull request #48 from spring-cloud/adrian.fix-type

Sets annotation type to String, so the zipkin UI won't render base64
This commit is contained in:
Adrian Cole
2015-10-09 22:00:06 -07:00

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"));