SAN FRANCISCO — Silicon Valley’s diversity problem doesn’t stop with the tech engineers: A Recorder analysis of the outside lawyers appearing on behalf of four major tech companies found even less ethnic and racial diversity than within the companies themselves.

Of the 126 lawyers listed as counsel of record for Google Inc. in open Northern District federal court matters, 96 percent are white or Asian-American. And 71 percent are men.