feat: add durable_function_execution_status tag to aws.lambda span#751
Draft
jchrostek-dd wants to merge 1 commit intomainfrom
Draft
feat: add durable_function_execution_status tag to aws.lambda span#751jchrostek-dd wants to merge 1 commit intomainfrom
jchrostek-dd wants to merge 1 commit intomainfrom
Conversation
When using AWS Lambda Durable Execution SDK, extract the execution status from the handler response and add it as a tag to the aws.lambda span. The tag captures the Status field from durable function responses: - SUCCEEDED: Execution completed successfully - FAILED: Execution failed - PENDING: Execution is still in progress The tag is only added when: 1. The event contains a DurableExecutionArn (indicates durable invocation) 2. The response is a dict with a valid Status field 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
08c1ebd to
ae4505f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new tag
durable_function_execution_statusto theaws.lambdaspan when using AWS Lambda Durable Execution SDK.The tag is only added when the Lambda is invoked as a durable function (event contains
DurableExecutionArn) and the response contains a validStatusfield.Changes
datadog_lambda/durable.py: Addedextract_durable_function_status_tag()functiondatadog_lambda/wrapper.py: Integrated status extraction in_after()methodtests/test_durable.py: Added 10 unit tests for the new functionalityTest Plan
🤖 Generated with Claude Code