aws-xray-sdk-go icon indicating copy to clipboard operation
aws-xray-sdk-go copied to clipboard

SDK V2 intrumentation of DynamoDB doesn't capture table name

Open POlczak-ITTouch opened this issue 1 year ago • 2 comments

I use the following function to instrument the github.com/aws/aws-sdk-go-v2/aws config of DynamoDB:

func InstrumentAWSV2SDK(cfg *aws.Config) {
	xray.AWSV2Instrumentor(&cfg.APIOptions)
}

However the resulting segments and subsegments only include the operation field. The table_name field which is filled by v1 instrumentation is missing from V2 segments:

{
    "id": "41dca423be59c89b",
    "name": "DynamoDB",
    "start_time": 1695049841.6308432,
    "end_time": 1695049842.310672,
    "http": {
        "response": {
            "status": 200,
            "content_length": 2
        }
    },
    "aws": {
        "region": "eu-west-3",
        "operation": "PutItem",
        "request_id": "ST03KT8SKU47VP27DQ5MDT9C83VV4KQNSO5AEMVJF66Q9ASUAAJG"
    },
    "namespace": "aws"
}

POlczak-ITTouch avatar Sep 18 '23 16:09 POlczak-ITTouch