aws-xray-sdk-node | The official AWS X-Ray SDK for Node.js | AWS library
kandi X-RAY | aws-xray-sdk-node Summary
kandi X-RAY | aws-xray-sdk-node Summary
The official AWS X-Ray SDK for Node.js.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Optionally enable calls to capture tracing requests .
- Capture the resulting HTTP request calls .
- Helper function to capture segments .
- Calls query if necessary
- Helper to capture an operation .
- Get an SSH token from AWS
- Resolves the arguments to an empty string
- Patches Promise .
- Patch one connection .
- Populate the metadata from AWS .
aws-xray-sdk-node Key Features
aws-xray-sdk-node Examples and Code Snippets
Community Discussions
Trending Discussions on aws-xray-sdk-node
QUESTION
I'm currently trying to set up XRay for a Lambda API. I'm unable to get a stack trace or statusCode that isn't 200. Im hitting an endpoint that simply throws a 500 error. The idea here would be that any errors in my code would bubble up to a final catch statement with an error handler that returns a 500 and logs the error. I would also hope to view the stack trace to the associated error in XRay and sort by 500 responses to find said error.
The function looks something like this (it's in Typescript):
Ignore the obvious errors, missing imports, etc. I basically took the important bits only.
...ANSWER
Answered 2020-Jul-07 at 08:08From the snippet, the subsegment
in handError
is never closed and hence is never sent out. Please refer to https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-nodejs-subsegments.html to close every subsegment opened.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aws-xray-sdk-node
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page