Add browser telemetry guide#384
Conversation
Documents the SSE-based browser telemetry stream — enabling capture, consuming events, per-category configuration, reconnection, and the full event type reference across console, network, page, interaction, and monitor categories. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Firetiger deploy monitoring skipped This PR didn't match the auto-monitor filter configured on your GitHub connection:
Reason: PR only adds documentation (MDX files) with no changes to API endpoints or Temporal workflows. To monitor this PR anyway, reply with |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7ca465dd5e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <CodeGroup> | ||
| ```typescript Typescript/Javascript | ||
| const response = await fetch( | ||
| `https://api.onkernel.com/v1/browsers/${kernelBrowser.session_id}/telemetry`, |
There was a problem hiding this comment.
Use the unversioned browser endpoint
When a user copies this SSE URL, it points at https://api.onkernel.com/v1/browsers/..., but the Kernel API reference and existing raw HTTP examples in this repo use the unversioned https://api.onkernel.com/browsers/... path (PATCH /browsers/{id}, GET /browsers/{id}, and the project-scoping curl example). This same /v1 prefix is repeated in the Python, observe, and reconnect examples, so users following the guide will likely hit a 404 instead of opening the telemetry stream unless the URL is changed to the documented base path.
Useful? React with 👍 / 👎.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
- Add CLI examples (create, update, telemetry stream) to all code blocks - Document computed event heuristics (network_idle 500ms, layout_settled 1s) - Add interaction rate-limiting (20/s) and sensitive input suppression - Improve monitor event descriptions (screenshot triggers, reconnect details) - Add event context fields table for cross-tab/navigation correlation - Add telemetry commands to CLI reference (create --telemetry, update, stream) - Restructure event envelope as a table with source.kind descriptions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Stale comment
Risk assessment: Very Low
Evidence from the current diff: this PR only adds and updates documentation content (
browsers/telemetry.mdx,introduction/observe.mdx,reference/cli/browsers.mdx) plus one Mintlify navigation entry indocs.json. The synchronize update adds CLI examples/reference details and telemetry guide clarifications, but still does not modify production code, infrastructure, auth/permissions, data schemas, prompts used by models, or shared runtime logic.I found no
CODEOWNERSfile requiring owner review. The PR is already approved, so I’m not submitting another approval; the risk level has not increased, so the existing approval can remain.Sent by Cursor Automation: Assign PR reviewers
There was a problem hiding this comment.
Stale comment
Risk assessment: Very Low
Evidence from the current diff: this PR adds
browsers/telemetry.mdx, updatesintroduction/observe.mdxandreference/cli/browsers.mdx, and adds one Mintlify navigation entry indocs.json. These are documentation and docs-navigation changes only, with no production code, infrastructure, auth/permissions, data schema, shared runtime logic, or model prompt/instruction changes.I found no
CODEOWNERSfile requiring owner review. The PR is already approved, so I’m not submitting another approval. The risk has not increased, so the existing approval can remain.Sent by Cursor Automation: Assign PR reviewers
- Rename "Event categories" to "Event types" - Rename "Event envelope" to "Event body" - Add event.data field tables for all 22 event types - Expand shared context fields (add target_type, loader_id) - Replace em dashes with hyphens throughout Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Stale comment
Risk assessment: Very Low
Evidence from the current diff: this PR adds
browsers/telemetry.mdx, updatesintroduction/observe.mdxandreference/cli/browsers.mdx, and adds one Mintlify navigation entry indocs.json. These are documentation and docs-navigation changes only, with no production code, infrastructure, auth/permissions, data schema, shared runtime logic, or model prompt/instruction changes.I found no
CODEOWNERSfile requiring owner review. The PR is already approved, so I’m not submitting another approval. The synchronized changes do not increase risk, so the existing approval can remain.Sent by Cursor Automation: Assign PR reviewers
There was a problem hiding this comment.
Stale comment
Risk assessment: Very Low
Evidence from the current diff: this PR adds
browsers/telemetry.mdx, updatesintroduction/observe.mdxandreference/cli/browsers.mdx, and adds one Mintlify navigation entry indocs.json. These are documentation and docs-navigation changes only, with no production code, infrastructure, auth/permissions, data schema, shared runtime logic, or model prompt/instruction changes.I found no
CODEOWNERSfile requiring owner review. The PR is already approved, so I’m not submitting another approval. The synchronized changes do not increase risk, so the existing approval can remain.Sent by Cursor Automation: Assign PR reviewers
- Replace raw HTTP reconnect example with TS/Python/CLI examples - Clarify interaction events are browser-native DOM events, not computer controls API calls - Reorder sections: Reconnecting > Updating telemetry > Event body > Event types Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Stale comment
Risk assessment: Very Low
Evidence from the current diff: this PR only adds and updates Mintlify documentation content (
browsers/telemetry.mdx,introduction/observe.mdx,reference/cli/browsers.mdx) plus one docs navigation entry indocs.json. It doesn’t modify production code, infrastructure, auth/permissions, data schemas, shared runtime logic, or model prompt/instruction files.I found no
CODEOWNERSfile requiring owner review. The PR already has an approval, so I’m not submitting another approval. The synchronized changes don’t increase risk, so I’m not dismissing the existing approval.Sent by Cursor Automation: Assign PR reviewers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Risk assessment: Very Low
Evidence from the current diff: this PR only adds and updates Mintlify documentation content (browsers/telemetry.mdx, introduction/observe.mdx, reference/cli/browsers.mdx) plus one docs navigation entry in docs.json. It doesn't modify production code, infrastructure, auth/permissions, data schemas, shared runtime logic, or model prompt/instruction files.
I found no CODEOWNERS file in the PR head, so I don't see a codeowner review requirement from the repo contents. The PR already has a Cursor approval, so I'm not submitting another approval. The synchronized changes don't increase risk, so I'm not dismissing the existing approval.
Sent by Cursor Automation: Assign PR reviewers


Summary
browsers/telemetry.mdx— a full guide for the SSE-based browser telemetry stream covering enabling capture, consuming events, per-category configuration (console, network, page, interaction), reconnection viaLast-Event-ID, updating config on running sessions, and the event envelope schemaintroduction/observe.mdxwith a browser telemetry section and quick-start exampleTest plan
mintlify devrenders the new page correctly🤖 Generated with Claude Code
Note
Low Risk
Documentation-only changes with no runtime, auth, or API implementation impact.
Overview
Adds browser telemetry documentation: a new
browsers/telemetry.mdxguide for SSE streaming (enable/disable and per-category config at create and on running sessions, consuming the stream,Last-Event-ID/--seqresume, CLItelemetry stream, envelope schema, and event-type reference for console, network, page, interaction, and monitor).Wires it into the site via
docs.json(Basics nav), a Browser telemetry section and updated “Picking the right tool” bullet inintroduction/observe.mdx, and CLI reference updates inreference/cli/browsers.mdx(--telemetryon create/update,kernel browsers update, andtelemetry streamflags).Reviewed by Cursor Bugbot for commit 32464f4. Bugbot is set up for automated code reviews on this repo. Configure here.