Skip to content

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

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

Add span.kind=server to aws.lambda spans#743
jchrostek-dd merged 4 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 JavaScript tracer wrapper
  • This enables server-based features in Datadog APM for Lambda functions

Changes

  • Modified onWrap() in src/trace/listener.ts 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

@jchrostek-dd jchrostek-dd requested review from a team as code owners March 13, 2026 11:51
@jchrostek-dd jchrostek-dd requested a review from lym953 March 13, 2026 11:51
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 force-pushed the john/lambda-span-service-kind branch from fd1484e to 97c1d7a Compare March 13, 2026 11:58
@jchrostek-dd jchrostek-dd removed the request for review from lym953 March 13, 2026 12:00
jchrostek-dd and others added 3 commits March 13, 2026 08:16
Add span.kind: server tag to aws.lambda spans in snapshot files
for esm, process-input-traced, and status-code-500s tests across
all Node.js versions (18, 20, 22, 24).

🤖 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 c8ee93b into main Mar 13, 2026
38 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