Skip to content

Commit 533d9cc

Browse files
jchrostek-ddclaude
andcommitted
Add span.kind=server to aws.lambda span
This aligns the tracer-created span with the extension's behavior, enabling server-based features in Datadog APM for Lambda functions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f349c57 commit 533d9cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datadog_lambda/tracing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,6 +1460,7 @@ def create_function_execution_span(
14601460
function_arn = ":".join(tk[0:7]) if len(tk) > 7 else function_arn
14611461
function_version = tk[7] if len(tk) > 7 else "$LATEST"
14621462
tags = {
1463+
"span.kind": "server",
14631464
"cold_start": str(is_cold_start).lower(),
14641465
"function_arn": function_arn,
14651466
"function_version": function_version,

0 commit comments

Comments
 (0)