Skip to content

Add AWS Lambda support and OTel plugin - #1473

Draft
eamsden wants to merge 5 commits into
mainfrom
eamsden/aws-lambda-support
Draft

Add AWS Lambda support and OTel plugin#1473
eamsden wants to merge 5 commits into
mainfrom
eamsden/aws-lambda-support

Conversation

@eamsden

@eamsden eamsden commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Rust AWS Lambda worker support with deadline-aware graceful shutdown, configuration loading, worker versioning, and shutdown hooks.
  • Add an AWS Lambda OpenTelemetry plugin with ADOT defaults, OTLP metrics/tracing, and warm-invocation-safe flushing.
  • Keep aws-lambda and aws-lambda-otel as independent opt-in features. Lambda runtime dependencies are enabled only by aws-lambda; AWS-specific OTel support is enabled only by aws-lambda-otel, while generic otel remains AWS-free.
  • Add the post-Core-shutdown interceptor lifecycle hook and non-destructive OTel force-flush support.
  • Fix host-side WASM example linking while preserving standalone component builds.

Verification

  • cargo test -p temporalio-sdk --no-default-features — 38 passed
  • cargo test -p temporalio-sdk --no-default-features --features aws-lambda — 47 passed
  • cargo test -p temporalio-sdk --no-default-features --features aws-lambda-otel — 42 passed
  • cargo test -p temporalio-sdk --no-default-features --features aws-lambda aws-lambda-otel — 51 passed
  • cargo integ-test -t wasm_workflow_tests — 8 passed
  • cargo lint
  • cargo test-lint
  • cargo +nightly fmt --all --check
  • Standalone WASM component build — passed offline

Known limitations

  • No live AWS Lambda/ADOT deployment test was run.
  • Rust OTel context propagation through Temporal headers remains outside this change.

@brucearctor

Copy link
Copy Markdown
Contributor

is there an associated issue with this work?

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.

2 participants