feat(lambda): pass the X-Ray trace header through durable chained invokes (#8189)

* feat(lambda): pass the X-Ray trace header through durable chained invokes

* fix(lambda): give a PassThrough invocation a new Parent for an unsampled header without one
This commit is contained in:
TATSUNO “Taz” Yasuhiro authored and GitHub committed 2026-11-13 08:30:31 -04:00
1 parent 7d7c87338f
commit ede4ebf6b0
12 files changed
+306 -38

No files matched your search

+7 -3
View File
@@ -255,7 +255,12 @@ Stopping the parent leaves the child running, as on AWS.
Each durable execution gets an X-Ray trace header. It is built from the `X-Amzn-Trace-Id` header of
Invoke when the request carries one. `GetDurableExecution` returns it as `TraceHeader`. Every
invocation of the execution gets the same `Root` in `_X_AMZN_TRACE_ID`. A `PassThrough` function
gets the `Parent` of the execution. An `Active` function gets a new `Parent` on each invocation.
gets the `Parent` of the execution. When the header has none, the function gets only the `Root` if
`Sampled=1`, and a new `Parent` on each invocation if `Sampled=0`. An `Active` function gets a new
`Parent` on each invocation.
A durable execution started by a chained invoke takes its header from
`ChainedInvokeOptions.XAmznTraceId`, or from the calling execution when that is absent. A plain
function invoked this way gets the same header.
`GetDurableExecutionHistory` leaves payloads out unless `IncludeExecutionData=true` is sent. The
API reference names `true` as the default, but AWS answers this way.
@@ -276,8 +281,7 @@ Not emulated yet:
- Payload encryption. `KMSKeyArn` is stored and returned only.
- EventBridge status-change events and a dead-letter queue or destinations for durable
executions.
- The `Lineage` field AWS adds to the trace header, and trace header propagation through chained
invokes.
- The `Lineage` field AWS adds to the trace header.
- The per-execution limits of 3,000 operations and 100 MB of persisted payload.
## Code signing configuration pagination