aws / aws-xray-sdk-node

The official AWS X-Ray SDK for Node.js.
Apache License 2.0
271 stars 155 forks source link

captureAWS is not working #479

Closed isheejong closed 2 years ago

isheejong commented 2 years ago

Hi, I would like to improve the observability of my sample application which is working with AWS AppSync, API Gateway, AWS Lambda and AMAZON DynamoDB and written by typescript. And, Currently, I can see the trace map. But, AMAZON DynamoDB doesn’t show up in this map. So, I modified the lambda code to improve the observability of aws-sdk.

import * as aws from "aws-sdk";
import * as AWSXRay from "aws-xray-sdk";

const AWS = AWSXRay.captureAWS(aws);

export const getDocumentClient = ():DocumentClient => {
    return new AWS.DynamoDB.DocumentClient(
        {
            service: new AWS.DynamoDB({region: "ap-northeast-2" })
        });
}

I still can’t see AWS DynamoDB. Maybe there is something wrong with this code?

isheejong commented 2 years ago

Sorry, I didn't enable the tracing options