close
Skip to content

feat: serverless worker - typescript#4468

Open
lennessyy wants to merge 8 commits intofeat/serverless-worker-prereleasefrom
feat/serverless-worker-prerelease-typescript
Open

feat: serverless worker - typescript#4468
lennessyy wants to merge 8 commits intofeat/serverless-worker-prereleasefrom
feat/serverless-worker-prerelease-typescript

Conversation

@lennessyy
Copy link
Copy Markdown
Contributor

@lennessyy lennessyy commented Apr 22, 2026

What does this PR do?

  • Add TypeScript to serverless worker

Notes to reviewers

┆Attachments: EDU-6245 feat: serverless worker - typescript

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
temporal-documentation Ready Ready Preview, Comment Apr 24, 2026 11:59pm

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 22, 2026

@lennessyy lennessyy marked this pull request as ready for review April 22, 2026 20:58
@lennessyy lennessyy requested a review from a team as a code owner April 22, 2026 20:58
Copy link
Copy Markdown
Contributor Author

@lennessyy lennessyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- Add HOME=/tmp to TS create-function env vars
- Fix makeOtelPlugins() to makeOtelPlugin() to match SDK export
- Add versioning behavior requirement note

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Correct two-layer instruction to single ADOT Node.js layer (includes collector)
- Add AWS_LAMBDA_EXEC_WRAPPER env var requirement
- Add AWSXRayDaemonWriteAccess policy requirement with silent failure warning

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Revert to the original two-layer ADOT instruction from the SDK author.
The single-layer setup was not verified end-to-end. Keep the
AWSXRayDaemonWriteAccess and AWS_LAMBDA_EXEC_WRAPPER additions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The default ADOT collector config does not route OTLP data to the traces
pipeline. Add the custom collector config YAML that wires OTLP to both
traces (X-Ray) and metrics (CloudWatch EMF). Document the required env
vars and IAM permissions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The standalone ADOT collector layer (v0.40.0) does not support the
debug exporter. Replace with logging, which is the supported equivalent.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Match the TS sample exactly:
- Two ADOT layers (JS layer + standalone collector)
- debug exporter (not logging)
- AWS_LAMBDA_EXEC_WRAPPER=/opt/otel-instrument
- OPENTELEMETRY_COLLECTOR_CONFIG_URI (not _FILE)
- tracing-config Mode=Active
- IAM permissions for xray, cloudwatch

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Node.js ADOT layer ships /opt/otel-handler, not /opt/otel-instrument
(which is the Python wrapper). Verified end-to-end: X-Ray traces confirmed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant