Repository navigation
Conversation
jariy17
force-pushed
the
fix/adot-typescript-templates
branch
from
November 30, 2026 21:56
e077503 to
eeafeea
Compare
jariy17
marked this pull request as ready for review
November 30, 2026 21:56
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v1.x #2892 +/- ##
=======================================
Coverage 96.73% 96.73%
=======================================
Files 747 747
Lines 62845 62845
=======================================
Hits 60793 60793
Misses 2052 2052 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Package TarballHow to installgh release download pr-2892-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-1.4.0.tgz |
Contributor
|
Claude Security Review: no high-confidence findings. (run) |
This branch has not been deployed
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
TypeScript agents created from
agent-typescript-strandsandagent-typescript-vercelsend no traces. Neither template installs an OpenTelemetry SDK. Strands carries only@opentelemetry/api, which drops spans unless a provider is registered, and Vercel carries nothing.agentcore traces runtime listprintsNo traces foundfor these agents however long you wait.This ports the template half of #1893 (v0.x) to v1.x. The Runtime half, preloading the distro through
NODE_OPTIONSon Node CodeZip Runtimes, is aws/agentcore-l3-cdk-constructs#479.@aws/aws-distro-opentelemetry-node-autoinstrumentation ~0.14.0.overridespinning@opentelemetry/exporter-metrics-otlp-httpand@opentelemetry/exporter-trace-otlp-httpto0.219.0. Strands 1.5 declares them as^0.214.0optional peers, and the distro needs0.219.0. Without the overrides,npm installin a new project fails withERESOLVE.--legacy-peer-depsis not a workaround: it also drops@modelcontextprotocol/sdk, and the bundle then fails to build.experimental_telemetryonstreamText, gated onAGENT_OBSERVABILITY_ENABLED === 'true'. The distro's Vercel instrumentation patchesaiat import time, but esbuild inlinesaiinto the CodeZip bundle, so there is no import left to patch. The SDK's own telemetry reports to the global tracer the distro registers.The
.tsandpackage.jsonchanges are the whole CLI diff;--help,--jsonandagentcore.jsonare unchanged.Related Issue
Closes #1892
Documentation PR
Not applicable: no command, flag or config change.
Type of Change
Testing
How have you tested the change?
bun test(5494 passed)bun run test:e2e, or explained why they are not applicable(CI does not run them for you). Not run as a suite. See the live run below; the trace assertion needs the L3 release.
bun run typecheckbun run lint:checkbun run format:checkbun run audit(no vulnerabilities, 570 packages)bun run secrets:checkbun run buildsrc/assets/, I updated affected snapshots withbun test <test-file> --update-snapshotsand committed them. No snapshot covers these files; theproject.test.tsdependency list is updated.by this PR. None re-recorded.
command.md(the release workflow regenerates it)Live, in us-east-1, with this branch built and the L3 PR vended in:
npm install.agentcore traces runtime list --name agentlists them.invoke_agent,chat,execute_tool. Vercel spans:chat <model>withgen_ai.*attributes.Checklist
@aws/agentcore-cdkrelease carrying aws/agentcore-l3-cdk-constructs#479. Until the pin insrc/assets/cdk/package.jsonmoves to it, new projects install the distro but nothing preloads it.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.