Commit 0f9bbd4
Fix duplicate aws.lambda spans when extension is present
When the extension is present, use the placeholder resource name
"dd-tracer-serverless-span" for the Python tracer's aws.lambda span.
This allows the extension to:
1. Recognize the span as a tracer placeholder
2. Merge the span's metadata into the extension's invocation span
3. Filter out the placeholder span (not sent to backend)
This prevents duplicate aws.lambda spans being sent - only the extension's
span (with merged Python metadata) will be sent.
Without the extension, the span uses the function name as before.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 6ab7bcf commit 0f9bbd4
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
1493 | 1494 | | |
1494 | 1495 | | |
1495 | 1496 | | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
1496 | 1505 | | |
1497 | 1506 | | |
1498 | 1507 | | |
1499 | | - | |
| 1508 | + | |
1500 | 1509 | | |
1501 | 1510 | | |
1502 | 1511 | | |
| |||
0 commit comments