Skip to content

[kernel-1116] browser logging: cdp monitor#195

Draft
archandatta wants to merge 27 commits intoarchand/kernel-1116/cdp-pipelinefrom
archand/kernel-1116/cdp-monitor
Draft

[kernel-1116] browser logging: cdp monitor#195
archandatta wants to merge 27 commits intoarchand/kernel-1116/cdp-pipelinefrom
archand/kernel-1116/cdp-monitor

Conversation

@archandatta
Copy link
Copy Markdown
Contributor

No description provided.

Event is the agreed portable name. DetailStandard avoids Go keyword
ambiguity with "default".
Moves CDP-specific fields (target_id, cdp_session_id, frame_id,
parent_frame_id) under source.metadata. Top-level Event schema now
contains only stable cross-producer fields.
…ut of Event

Event is now purely producer-emitted content. Pipeline-assigned metadata
(seq, capture_session_id) lives on the Envelope. truncateIfNeeded
operates on the full Envelope. Pipeline type comment now documents
lifecycle semantics.
Ring buffer now indexes by envelope.Seq directly, removing the separate
head/written counters. NewReader takes an explicit afterSeq for resume
support. Renamed notify to readerWake for clarity.
Drops are now stream metadata (ReadResult.Dropped) rather than fake
events smuggled into the Event schema. Transport layer decides how to
surface gaps on the wire.
truncateIfNeeded now warns if the envelope still exceeds the 1MB limit
after nulling data (e.g. huge url or source.metadata). Pipeline.Publish
skips the file write when marshal returns nil to avoid writing corrupt
bare-newline JSONL lines.
@archandatta archandatta force-pushed the archand/kernel-1116/cdp-pipeline branch 2 times, most recently from 6d929c8 to 76d837f Compare April 2, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant