[Feature][OTel]: Read traceparent from native Lambda W3C context

Open
#967 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
aws, python

Research direction

Start in the Durable OpenTelemetry plugin and find the existing w3c_client_context_extractor plus the runtime interface client version pinned in the project; the issue depends on the context.w3c() API added in runtime interface client 4.2.0. Read how the plugin currently selects a parent span, then decide precedence between native W3C values and the existing propagation sources, preserving behavior when helpers are missing or values are malformed. Done means tests covering a valid parent, the precedence cases, and a suspend/resume cycle where correlation stays stable.

Written by the indexing model from the issue text.

Description

needs-triage
What would you like?

Support inbound W3C trace continuity in the Durable OpenTelemetry plugin by reading the invocation's traceparent via Lambda's native context.w3c() API. The runtime interface client added this API in October 2026 for fields supplied in clientContext.w3c.

Wire the existing w3c_client_context_extractor into this runtime path.

Acceptance criteria
  • A valid native W3C parent joins the durable trace according to the plugin's parent-selection rules.
  • Define and test precedence when W3C and existing propagation sources are both present. Missing helpers or missing or malformed W3C values preserve existing behavior.
  • Cover a suspend/resume case and verify that trace correlation remains stable.
Related
Dominant language
Python
Stars
59
Forks
32
Avg merge
1d 5h
Merged PRs (30d)
76

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/aws-durable-execution-sdk-python

All issues in aws/aws-durable-execution-sdk-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.