Repository navigation
sdk-3.0.0 / otel-2.0.0 / test-1.3.2 / telemetry-exporter-0.1.0-alpha.1 / telemetry-mcp-0.1.0-alpha.1 / eslint-1.2.0
This release contains Core 3.0.0, OTel 2.0.0, Testing SDK 1.3.2, Telemetry Exporter 0.1.0-alpha.1, Telemetry MCP 0.1.0-alpha.1 and ESLint plugin 1.2.0.
Core 3 and OTel 2 are major releases for plugin authors. Upgrade them together, including any Lambda layers that contain them. OTel 1.x declares a Core peer range below 3.0.0, and Core 3 rejects a v1 provider with PluginLoadError. Upgrade the Testing SDK to 1.3.2 before Core 3, because 1.3.1 excludes Core 3 from its peer range. The 2.x to 3.0 migration guide lists the porting steps.
@aws/durable-execution-sdk-js 3.0.0
Breaking and behavior changes
DurableExecutionConfig.pluginsaccepts factory objects with a synchronouscreatePlugin(info)method. The SDK calls it once per invocation. So plugin state no longer crosses concurrent Lambda Managed Instances requests. A v1 provider or a plugin instance fails withPluginLoadError. 6597e07- The SDK no longer awaits
onOperationStart,onOperationEnd,onOperationAttemptStart,onOperationAttemptEndoronOperationChange. The synchronous part of each hook still runs in call order. The asynchronous parts can overlap. BeforeonInvocationEnd, the SDK waits for that work until 500 ms before the deadline. It waits foronInvocationEnduntil 50 ms before the deadline. 4e4e940 - A failed
context.invokethrowsInvokeErroras before. Itscause.nameis now the invoked function's error type, not"Error". a0d310f - The SDK suspends an idle invocation 3 ms after the last operation goes idle, not 20 ms. The SDK does not track an
awaitin handler code between two operations. So such anawaitlonger than 3 ms can let the invocation suspend before the next operation starts. c0a7e34
Fixes and additions
- Factories and hooks receive the invocation-local
context.xRayTraceIdcarrier. 6597e07 createPowertoolsLoggeradds durable context to Powertools log entries. 3542d02- A reused logger takes its identity from the active execution context. eacf9df
- An operation stays
EXECUTINGwhile its result is deserialized. Before, a slow deserializer next to a pending callback could let the invocation suspend early. A deserializer that fails slowly now fails the invocation. a642883 - A
wraphook that rejects for its own reasons no longer fails the invocation. A context without a usablegetRemainingTimeInMilliscounts as having no deadline. 4e4e940 - The instrumentation plugin interface is no longer
@experimentalor@beta. 8e5e3a4 - After a
maporparallelcompletes early, the invocation can suspend again. Before, a still-running step in an abandoned item blocked suspension. 0cb2d80 - A resumed
maporparallelkeeps every recorded item outcome. No item starts after the batch resolves. 2e98408, f753d36
Full Changelog: sdk-2.7.1...sdk-3.0.0
@aws/durable-execution-sdk-js-otel 2.0.0
Breaking changes
createExecutionOtelPluginFactoryandcreateInvocationOtelPluginFactoryreplace constructing the plugin classes. OTel 2 requires Core>=3.0.0 <4.0.0, also in Lambda layers. 6597e07- The execution view reports
faas.max_memoryin bytes, not MiB. So a 1024 MiB function reports1073741824. Update queries and alarms that read it. e049d07
Fixes
- Spans, operation maps, replay state and clocks belong to each plugin instance. The provider stays shared. 6597e07
- Trace and sampling data come from the invocation-local carrier. 6597e07
See the OTel migration reference.
Full Changelog: sdk-2.7.1 (OTel 1.2.1)...sdk-3.0.0 (OTel 2.0.0)
@aws/durable-execution-sdk-js-testing 1.3.2
- The Core peer range is
>=1.0.1 <4.0.0. So it accepts Core 3. 6597e07 - A settled invocation no longer starts an extra invocation from a queued wakeup. 9462cd9
- The cloud runner stores an operation before it notifies history waiters. 417497f
- Skip-time keeps checkpoint timestamps, delays and nested invocations on the runner's clock. bcb41eb
- An abandoned durable invoke no longer holds its caller's fake clock. 8b8ebe8
- Skip-time keeps advancing after a runner's clock hold expires. e9689d7
Upgrade the Testing SDK before Core 3. Testing SDK 1.3.1 excludes Core 3 from its peer range. A timer inside a step runs in real time. Use a durable wait to test a durable delay. The corrected scheduling can change recorded invocation counts and history order.
Full Changelog: sdk-2.7.0 (Testing 1.3.1)...sdk-3.0.0 (Testing 1.3.2)
@aws/durable-execution-sdk-js-telemetry-exporter 0.1.0-alpha.1
- Every error carries its cause chain as
{ name, message, cause? }. A record whose causes were removed to fit a size limit hasdroppedCauses: true. 2e9031d, e25244a SQSExporterhashes a FIFO group or deduplication id longer than 128 characters. Before, SQS rejected these sends. 2e9031demittedAtstrictly increases within an invocation. Before, two records in one millisecond collided in SQS and DynamoDB. 2676e48
The package remains a preview on the beta dist-tag.
@aws/durable-execution-sdk-js-telemetry-mcp 0.1.0-alpha.1
list_executionsvalidatessinceanduntil, and reads a bound without an offset as UTC. 9840138- The bundled Athena DDL uses
timestamptime columns, keeps key case and addsdroppedcauses. e25244a, 9840138, 16b6f28 test_destinationno longer requiresDURABLE_TELEMETRY_ATHENA_S3_LOCATIONfor thes3destination. 16b6f28
The package remains a preview on the beta dist-tag.
@aws/durable-execution-sdk-js-eslint-plugin 1.2.0
- The new rule
require-durable-operation-in-child-contextreports a child context function that calls no durable operation. It is not inflat/recommended. 3cbb456, e2f013f
Full Changelog: eslint-1.1.1...sdk-3.0.0