Uh oh!
There was an error while loading. Please reload this page.
feat: instrument telemetry for import command - #1312
Conversation
Claude Security Review: no high-confidence findings. (run) |
Package TarballHow to installgh release download pr-1312-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.14.0.tgz |
Wrap all import execution paths with withCommandRunTelemetry: - YAML flow (import --source) - 5 subcommands (runtime, memory, evaluator, online-eval, gateway) - TUI ImportProgressScreen (deploy pattern) Schema changes: - Register import.evaluator, import.online-eval, import.gateway as NoAttrs Error typing: - Use ValidationError for ARN/target/config validation in import-utils.ts - Use NoProjectError for missing project in resolveProjectContext - Use ValidationError for returned errors in actions.ts Tests: - Schema parse tests for all 6 import command entries - Integration tests verifying telemetry emission on failure paths - Fix pre-existing mock gap in import-gateway-flow.test.ts
c92b29c to
6879a3aCompareClaude Security Review: no high-confidence findings. (run) |
agentcore-cli-automation
left a comment
There was a problem hiding this comment.
Telemetry instrumentation looks solid and follows the established patterns from the invoke/dev PRs. The error typing changes (ValidationError / NoProjectError) match the classification model well. A couple of small things to consider before merging — neither is a strict blocker.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Claude Security Review: no high-confidence findings. (run) |
jesseturner21
left a comment
There was a problem hiding this comment.
LGTM one comment on typing but its not that deep
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Claude Security Review: no high-confidence findings. (run) |
Description
Instrument telemetry for all import command execution paths, following the patterns established by the invoke (#1227) and dev (#1223) telemetry PRs.
Telemetry wrapping:
import --source) — wrapped withwithCommandRunTelemetryincommand.ts.action()wrappedImportProgressScreen— wrapped insideuseEffect(deploy pattern, captures success/failure)Schema changes:
import.evaluator,import.online-eval,import.gatewayasNoAttrsentries inCOMMAND_SCHEMASError typing:
import-utils.ts:ValidationErrorfor ARN/target/config validation,NoProjectErrorfor missing projectactions.ts:ValidationErrorfor returned error resultstoError(err)catch-all for SDK errors (correct classification viaBaseError.errorSource)Related Issue
Closes #
Documentation PR
N/A — internal telemetry, no user-facing documentation changes.
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 snapshotsChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.