136137138139140141142
return false; } private LogEntry create(final Span span) throws TException { final String spanAsString = base64.encodeToString(spanToBytes(span)); return new LogEntry("zipkin", spanAsString); }
135136137138139140141142143144
} private LogEntry create(final Event event) { final byte[] body = event.getBody(); final LogEntry logEntry = new LogEntry(); logEntry.setCategory(event.getHeaders().get(SCRIBE_CATEGORY)); logEntry.setMessage(new String(body)); return logEntry; }
167168169170171172173174175176