Commit 55dc3f4
feat: [SVLS-8720] Add span tag aws_lambda.durable_function.first_invocation (#747)
* Add durable_function_first_invocation tag to aws.lambda spans
Extends extract_durable_function_tags() to accept context.state and
sets durable_function_first_invocation ("true"/"false") using
not state.is_replaying(). wrapper._before() passes context.state
to the function.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add durable_function_first_invocation tag to aws.lambda spans
Extends extract_durable_function_tags() to set
durable_function_first_invocation ("true"/"false") by checking
len(InitialExecutionState.Operations) <= 1, mirroring the SDK's
own replay detection logic (ReplayStatus.REPLAY when len > 1).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Add comment
* Change <= 1 to == 1
* Update comments
* fmt
* feat: [SVLS-8493] use aws_lambda prefix for durable function tags
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a3f0640 commit 55dc3f4
2 files changed
+33
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
61 | 85 | | |
62 | 86 | | |
63 | 87 | | |
| |||
0 commit comments