Skip to content

feat: [SVLS-8721] add first_invocation tag for durable functions#761

Merged
lym953 merged 3 commits intomainfrom
yiming.luo/durable-first-invocation-tag
Apr 14, 2026
Merged

feat: [SVLS-8721] add first_invocation tag for durable functions#761
lym953 merged 3 commits intomainfrom
yiming.luo/durable-first-invocation-tag

Conversation

@lym953
Copy link
Copy Markdown
Contributor

@lym953 lym953 commented Apr 13, 2026

Summary

Testing

Built a layer, installed it on a function, then invoke the function.

The aws.lambda span for the first invocation has tag first_invocation:true
image

This is false for the second invocation.
image

@lym953 lym953 force-pushed the yiming.luo/durable-first-invocation-tag branch from d766c51 to baabbda Compare April 13, 2026 19:32
@lym953 lym953 changed the base branch from main to yiming.luo/fix-durable-function-tags April 13, 2026 19:32
Base automatically changed from yiming.luo/fix-durable-function-tags to main April 14, 2026 15:24
lym953 and others added 3 commits April 14, 2026 11:25
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tag `aws_lambda.durable_function.first_invocation` is set to "true"
when `InitialExecutionState.Operations` has exactly one entry (first
invocation) and "false" when it has more (replay). Omitted when
InitialExecutionState is absent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lym953 lym953 force-pushed the yiming.luo/durable-first-invocation-tag branch from baabbda to f651e85 Compare April 14, 2026 15:25
@lym953 lym953 marked this pull request as ready for review April 14, 2026 16:03
@lym953 lym953 requested review from a team as code owners April 14, 2026 16:03
@lym953 lym953 requested a review from jchrostek-dd April 14, 2026 16:03
@lym953 lym953 merged commit 1f8a5e7 into main Apr 14, 2026
40 of 41 checks passed
@lym953 lym953 deleted the yiming.luo/durable-first-invocation-tag branch April 14, 2026 18:55
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.

2 participants