feat(traces): enrich traces list with duration, status, input/output, and age#740
Open
jesseturner21 wants to merge 2 commits intomainfrom
Open
feat(traces): enrich traces list with duration, status, input/output, and age#740jesseturner21 wants to merge 2 commits intomainfrom
jesseturner21 wants to merge 2 commits intomainfrom
Conversation
… and age Replace the minimal 3-column traces list (ID, Timestamp, Session) with a rich 7-column table matching the starter toolkit's obs list output. Two-phase CloudWatch query: - Phase 1: Query aws/spans for span-level data (duration, status, counts) - Phase 2: Query runtime logs for input/output message previews Supports Strands, botocore, and generic OTEL message formats. Constraint: Must query two separate log groups (aws/spans + runtime logs) Rejected: Single-query approach | runtime logs lack span duration/status data Rejected: Session-scoped listing | CLI lists all traces per agent, not per session Confidence: high Scope-risk: narrow Directive: Message parser handles 3 formats - add new patterns to extractMessagesFromBody if new frameworks are added Not-tested: Agents using LangChain or GoogleADK instrumentation formats Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Package TarballHow to installnpm install https://github.com/aws/agentcore-cli/releases/download/pr-740-tarball/aws-agentcore-0.4.0.tgz |
Contributor
Coverage Report
|
SVG screenshots captured via TUI harness showing the new 7-column traces list output with color-coded duration, status icons, and input/output message previews. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Description
Replaces the minimal 3-column
traces listoutput (Trace ID, Timestamp, Session ID) with a rich 7-column table matching the starter toolkit'sobs listoutput. This gives users much better visibility into their agent's trace data directly from the CLI.New columns
#(latest)marker on most recent traceTrace IDDurationStatus✓ OK/❌ N errindicatorInputOutputAgeArchitecture
aws/spanslog group for span-level data (duration, status codes, span counts)/aws/bedrock-agentcore/runtimes/{runtimeId}-DEFAULT) for input/output message previewsScreenshots
Dark theme:
Light theme:
Related Issue
Closes #
Documentation PR
N/A
Type of Change
Testing
How have you tested the change?
npm run test:unitandnpm run test:integnpm run typechecknpm run lintsrc/assets/, I rannpm run test:update-snapshotsand committed the updated snapshotsManual E2E Testing
Bundled CLI (
npm run bundle), installed globally, and tested against a deployed Strands agent (deltaAqua_Agent-HkpfaiD6hH) with real CloudWatch traces:agentcore traces list --since 30d— 6 traces returned with all 7 columns, input/output extracted from Strands telemetryagentcore traces list --limit 2— correctly returns only 2 tracesagentcore traces list --since 1h— correctly returns "No traces found" for old dataChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.