static boolean protobuf3(ByteBuffer bytes) {
    // varint follows and won't be zero
    return bytes.get(bytes.position()) == 10 && bytes.get(bytes.position() + 1) != 0;
  }
@throws IllegalArgumentException if the input isn't a json or thrift list or object.
zipkin/src/main/java/zipkin2/SpanBytesDecoderDetector.java