Skip to content

Add span.kind=server to aws.lambda spans#745

Merged
jchrostek-dd merged 2 commits intomainfrom
john/lambda-span-service-kind
Mar 13, 2026
Merged

Add span.kind=server to aws.lambda spans#745
jchrostek-dd merged 2 commits intomainfrom
john/lambda-span-service-kind

Conversation

@jchrostek-dd
Copy link
Contributor

@jchrostek-dd jchrostek-dd commented Mar 13, 2026

https://datadoghq.atlassian.net/browse/SVLS-8716

Summary

  • Adds span.kind=server attribute to aws.lambda spans created by the Python tracer wrapper
  • This enables server-based features in Datadog APM for Lambda functions

Changes

  • Modified create_function_execution_span() in tracing.py to include "span.kind": "server" in span tags

Test plan

  • Verified via integration tests that span.kind=server appears on aws.lambda spans
  • Tested in sandbox environment with custom layer

🤖 Generated with Claude Code

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>
@jchrostek-dd jchrostek-dd requested review from a team as code owners March 13, 2026 11:51
@jchrostek-dd jchrostek-dd requested review from duncanista and removed request for duncanista March 13, 2026 11:51
Add span.kind: server to all aws.lambda spans in integration test
snapshot files to match the new behavior added in tracing.py.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jchrostek-dd jchrostek-dd merged commit 8fe789e into main Mar 13, 2026
105 checks passed
@jchrostek-dd jchrostek-dd deleted the john/lambda-span-service-kind branch March 13, 2026 14:05
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