[java] Explicitly set flatten = true when attaching to CDP target, it's preferred mode
@@ -88,7 +88,7 @@ public void createSession() {
// Start the session.
cdpSession =
connection
- .sendAndWait(cdpSession, Target.attachToTarget(targetId, Optional.empty()), timeout);
+ .sendAndWait(cdpSession, Target.attachToTarget(targetId, Optional.of(true)), timeout);
try {
// We can do all of these in parallel, and we don't care about the result.
