Repository navigation
feat(events): Add --json output to events dropped - #3432
Draft
manessaraj wants to merge 2 commits into
Draft
manessaraj wants to merge 2 commits into
manessaraj wants to merge 2 commits into
Conversation
Contributor
|
manessaraj
force-pushed
the
sarajmanes/dain-1940-events-dropped-json
branch
2 times, most recently
from
October 16, 2026 18:09
d68c937 to
b296f27
Compare
manessaraj
force-pushed
the
sarajmanes/dain-1940-events-dropped-json
branch
from
October 16, 2026 19:02
b296f27 to
12b1056
Compare
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.
Stacked on #3431 (the human table). Adds a
--jsonflag toevents droppedfor agents and automation, since the terminal table is not machine-readable.The JSON mirrors the same sectioned structure the table shows: an array of outcomes (outcome code, human label, dropped count, share) each carrying its reason rows (reason, category, dropped count, share). Share is a raw ratio (0.1, not "10%") so agents don't parse formatted strings. Both views are built from one function, so they never diverge.
Follows the existing per-command
--jsonconvention in the CLI (e.g.debug-files check --json); there is no global agentic auto-detection to hook into.Refs: DAIN-1940