You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SVLS-8722] feat(logs): add aws_lambda.durable_function.first_invocation to START/END/REPORT logs (#1158)
## Summary
- Extracts the `aws_lambda.durable_function.first_invocation` tag from
the `aws.lambda` span (sent by the tracer) and adds it as an attribute
on `START`, `END`, and `REPORT` platform logs for durable functions.
This tag will be used by UI to identify durable execution start time and
apply time filter properly.
- The tag flows through the existing `DurableContextUpdate` pipeline:
`trace_agent` → `processor_service` → lifecycle processor → logs agent
- `START`/`END`/`REPORT` logs are already held until durable context
arrives (from #1053); `first_invocation` arrives in the same update, so
no additional holding logic is needed
- Non-platform (function) logs are unaffected
- Renames serialized durable log attributes to the `durable_function.*`
namespace for consistency with tag spans
## Test plan
### Automated testing
The touched unit tests passed.
### Manual testing
`START` and `END` logs for the first invocation have `first_invocation:
true`.
<img width="532" height="338" alt="image"
src="https://github.com/user-attachments/assets/1df450c6-d54f-4e81-89ee-fbedc5e4a48e"
/>
`START` and `END` logs for subsequent invocations have
`first_invocation: false`.
<img width="522" height="289" alt="image"
src="https://github.com/user-attachments/assets/2488d3cd-d05e-4824-9ab8-707c3249f907"
/>
Other logs are not affected
<img width="518" height="397" alt="image"
src="https://github.com/user-attachments/assets/e64d231e-26de-4f2b-a8f0-799ca7fc1dcd"
/>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments