Skip to content

SDK V2 intrumentation of DynamoDB doesn't capture table name #417

Description

@polczak-itt

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions