docs: explain live V4 network capture over CDP - #249
Open
MagMueller wants to merge 5 commits into
Open
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Contributor
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Adds a V4 guide for attaching a CDP observer to an existing live browser. It explains how the browser ID differs from run/session IDs, how to retrieve
cdpUrl, and how to save bounded, origin-only request metadata with Playwright. Links the page from Observability and navigation, and regenerates the four Cloud/root LLM-text mirrors.The guide explicitly does not promise complete historical capture or HAR export. It covers late attachment, existing-page-only coverage, redirects, browser replacement, sensitive data, and the difference between detaching a logger and stopping a browser. No SDK or runtime behavior changes.
Verification
requestWillBeSent,responseReceived(HTTP 200), andloadingFinishedfor a controlled same-origin GET. No customer session, login, or form submission was involved.mint broken-links: passed.git diff --check: passed.The real test run completed. Its managed browser remains subject to the normal agent lifecycle; an explicit stop through the API was not verified with the available credential. The example does not create or stop browsers.
Summary by cubic
Adds a V4 guide for attaching a CDP observer to a live browser and saving bounded, origin-only request metadata. The page explains how browser IDs differ from run/session IDs, how to retrieve
cdpUrl, and covers late attachment, redirects, browser replacement, and sensitive data; run events are explicitly not a network log or a historical HAR export. The example distinguishes missingBROWSER_CDP_URLconfiguration from connection failures, and connection failures raise a generic message so the credential-bearing CDP URL never appears in tracebacks.(page, requestId); recorded origins keep IPv6 brackets and non-default ports while paths, queries, headers, cookies, and bodies are dropped, and malformed URLs record a null origin.Written for commit 9427bbe. Summary will update on new commits.