Skip to content

Add OpenTelemetry conformance handlers for the durable execution SDK - #2615

Draft
normj wants to merge 4 commits into
normj/durable-otel-annotationsfrom
normj/durable-otel-conformance
Draft

normj wants to merge 4 commits into
normj/durable-otel-annotationsfrom
normj/durable-otel-conformance

Conversation

@normj

@normj normj commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Stacked on #2614 (base is normj/durable-otel-annotations). Merge #2611, #2612 and #2614 first.

What

Handlers and a SAM template for the shared otel-invocation and otel-execution suites in aws-durable-execution-conformance-tests, in Libraries/test/Amazon.Lambda.DurableExecution.ConformanceTests.Otel.

  • One executable serves every case. CONFORMANCE_SCENARIO picks the case and OTEL_PLUGIN_MODE the view. template.yaml is generated by scripts/generate_template.py (each case is deployed once per view).
  • Program.cs builds an OpenTelemetry TracerProvider for the plugin's ActivitySource, and AWSLambdaWrapper starts the server span the Invocation span hangs from. This is the part the ADOT wrapper plays for Java, JavaScript and Python.
  • The ADOT collector layer receives OTLP. collector-xray.yaml sends it to X-Ray's OTLP endpoint with SigV4, because the layer's default awsxray exporter drops the span kind and service name the validators check. This needs X-Ray Transaction Search in the account.

Results

Both suites against X-Ray in us-west-2: 25 passed, 2 not implemented, 0 failed.

  • 23 is not implemented: it needs a with-retry helper for child contexts, which the .NET SDK does not have.
  • 24 is not implemented: it needs a public way to request an invocation retry. In .NET a workflow exception fails the execution.

Case 10 and 17 found an Invocation-view difference: replaying a finished step exported it again. Fixed in #2612 (af349e8) to match the Python SDK.

Not in this PR

  • --language dotnet needs a dotnet ADOT profile in the conformance runner (collector layer, no exec wrapper). That change is ready locally for aws/aws-durable-execution-conformance-tests and not yet proposed.
  • A GitHub workflow calling the shared opentelemetry-orchestrator.yml. It depends on the runner change.

One executable serves every case, selected by CONFORMANCE_SCENARIO. A generated
SAM template deploys each case once per view (otel-invocation, otel-execution).
Spans go through an OpenTelemetry TracerProvider to the collector Lambda layer,
with AWSLambdaWrapper starting the server span the Invocation span hangs from.
…23 and 24 not implemented

otel-invocation: 25 passed, 2 not implemented against X-Ray in us-west-2.
@normj
normj force-pushed the normj/durable-otel-conformance branch from 0dbb7df to e63f392 Compare November 20, 2026 01:25

This branch has not been deployed

No deployments
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