Skip to content

feat(otel): Add X-Ray e2e integration tests for span validation#444

Open
ayushiahjolia wants to merge 1 commit into
mainfrom
feat/otel-xray-e2e-tests
Open

feat(otel): Add X-Ray e2e integration tests for span validation#444
ayushiahjolia wants to merge 1 commit into
mainfrom
feat/otel-xray-e2e-tests

Conversation

@ayushiahjolia

@ayushiahjolia ayushiahjolia commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Issue Link, if available

#435

Description

Adds end-to-end tests that deploy Lambda functions with the OTel plugin + ADOT layer and validate that durable execution spans appear correctly in AWS X-Ray.

  • Two example handlers: OtelXRayStepExample (single invocation) and OtelXRayWaitExample (multi-invocation via wait)
  • OtelXRayIntegrationTest invokes deployed functions, queries X-Ray API, and asserts durable.* spans exist in a unified trace
  • Local tests via LocalDurableTestRunner for handler logic validation without cloud deployment
  • SAM template adds two functions with Tracing: Active, ADOT layer, and OTLP export to collector

Demo/Screenshots

CI Output -

✅ Simple steps test passed — 3 segments in trace 1-58ac1cb7-5e11b89b00cda2b5e70e2ecf
✅ Wait + resume test passed — 5 segments across 6 invocations in trace 1-77231bf8-4a4e73b1eb995afb155220c6

Checklist

  • I have filled out every section of the PR template
  • I have thoroughly tested this change

Testing

Unit Tests

Have unit tests been written for these changes? Yes

Integration Tests

Have integration tests been written for these changes? Yes

Examples

Has a new example been added for the change? (if applicable) Yes

@ayushiahjolia ayushiahjolia force-pushed the feat/otel-xray-e2e-tests branch 16 times, most recently from 6695bcf to 29cf17e Compare June 17, 2026 06:00
@ayushiahjolia ayushiahjolia force-pushed the feat/otel-xray-e2e-tests branch 3 times, most recently from 8104b27 to 5d96b72 Compare June 17, 2026 23:11
Add example Lambda handlers (OtelXRayStepExample, OtelXRayWaitExample)
and OtelXRayIntegrationTest that validates X-Ray trace propagation
end-to-end against deployed functions. Includes SAM template additions
with ADOT layer config using FindInMap for architecture lookup,
collector config, and CI workflow update.
@ayushiahjolia ayushiahjolia force-pushed the feat/otel-xray-e2e-tests branch from 5d96b72 to 80afeac Compare June 17, 2026 23:47
@ayushiahjolia ayushiahjolia marked this pull request as ready for review June 18, 2026 00:10
@ayushiahjolia ayushiahjolia requested a review from a team June 18, 2026 00:10
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