aws / aws/aws-xray-sdk-node

How do I record http method and response code from lambda

Open
#516 12 comments 4 reactions 1 assignee Claimed by @srprash View on GitHub
enhancement
Dominant language
JavaScript
Stars
280
Forks
157
PR merge metrics
No merged PRs in 30d

Description

"The other difference between instrumenting Lambda functions and web applications is that the segment that Lambda creates and sends to X-Ray cannot be modified by your function code. You can create subsegments and record annotations and metadata on them, but you can't add annotations and metadata to the parent segment."
--- from AWS doc

I found whatever statusSode return from lambda, the tracing information always wrote 200 and mark as correct request. And the request path and method are all missing. what should I do to fix it?

Screen Shot 2022-07-03 at 21 20 35

Screen Shot 2022-07-03 at 21 20 46

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.