[eas-cli] Add observe:event command to fetch a single event by ID - #4252
Open
douglowder wants to merge 4 commits into
Open
[eas-cli] Add observe:event command to fetch a single event by ID#4252douglowder wants to merge 4 commits into
douglowder wants to merge 4 commits into
Conversation
douglowder
force-pushed
the
doug/eng-26000-cli-fetch-a-single-observe-event-by-id-via-the-eas-cli
branch
from
August 21, 2026 23:03
5a60109 to
a75a15a
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4252 +/- ##
==========================================
+ Coverage 64.05% 64.27% +0.22%
==========================================
Files 1043 1047 +4
Lines 48017 48391 +374
Branches 10133 10214 +81
==========================================
+ Hits 30753 31098 +345
- Misses 17148 17177 +29
Partials 116 116 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
douglowder
force-pushed
the
doug/eng-26000-cli-fetch-a-single-observe-event-by-id-via-the-eas-cli
branch
2 times, most recently
from
August 24, 2026 20:10
c49a2f5 to
2b5c8c9
Compare
kadikraman
reviewed
Aug 24, 2026
kadikraman
reviewed
Aug 24, 2026
douglowder
force-pushed
the
doug/eng-26000-cli-fetch-a-single-observe-event-by-id-via-the-eas-cli
branch
from
August 25, 2026 02:03
3add66d to
814ab4f
Compare
Add `eas observe:event <ID>` to display one Observe event (metric or log) by its ID, using the new AppObserve.event and AppObserve.customEvent GraphQL fields. The command looks up both in one request and renders whichever resolves; a non-existent ID errors with a not-found message. Regenerate GraphQL from the server for the new fields, add ObserveQuery. eventByIdAsync, extract single-event JSON mappers, and add detail formatters. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
When the server returns an error (rather than null) for an unknown or malformed event ID, observe:event surfaced an opaque "unexpected server error" with a request ID. Wrap the lookup so plan-gate rejections still pass through, and translate other server errors into an actionable message that names the ID and preserves the underlying error and request ID for support. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…vent types A custom (log) event ID is a UUID and a metric event ID is base64url-encoded JSON, so querying both fields meant one always failed — and an unknown ID surfaced as an opaque "unexpected server error". Classify the ID: a UUID uses the custom-event query, a base64url value uses the metric-event query, and anything else errors immediately as an invalid event ID. Split the combined GraphQL lookup into two single-field queries accordingly. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
douglowder
force-pushed
the
doug/eng-26000-cli-fetch-a-single-observe-event-by-id-via-the-eas-cli
branch
from
August 26, 2026 21:24
763552c to
d7e881d
Compare
|
✅ Thank you for adding the changelog entry! |
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.
Why
Provide a new
observe:eventcommand for retrieving either metric or custom events by ID.How
Add the new command, and associated queries that call the new event(id:) or customEvent(id:) GraphQL . The command returns whichever query finds the event, or throws if no event is found, similarly to
observe:session.Test Plan
Stack created with GitHub Stacks CLI • Give Feedback 💬