public ByteBuffer toThrift() {
    byte[] result = new byte[sizeInBytes()];
    write(WriteBuffer.wrap(result));
    return ByteBuffer.wrap(result);
  }
Writes the current instance in TBinaryProtocol
zipkin/src/main/java/zipkin2/internal/Dependencies.java