Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

captureAWSv3Client within subsegment #663

Open
petermyers opened this issue Jun 20, 2024 · 0 comments
Open

captureAWSv3Client within subsegment #663

petermyers opened this issue Jun 20, 2024 · 0 comments

Comments

@petermyers
Copy link

petermyers commented Jun 20, 2024

I'm attempting to instrument a NodeJS Lambda using Xray. Throughout the invocation, I create a number of subsegments, and within each, I issue dynamodb queries. The calls to DDB display in the xray trace as a standalone subsegment nested under the root 'Invocation' segment, rather than under my own subsegment.

Is this supported? Do I need to pass in some options to the captureAWSv3Client call or to the client query call directly to indicate what the parent segment is? Since the prescribed best practice is to create the sdk client outside of the lambda handle function so it can be re-used across invocations, should I be calling captureAWSv3Client during each invocation?

Thanks!

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

No branches or pull requests

1 participant