I am deploying code to Lambda and use below code to instrument dynamodb requests. It works fine for query but doesn't work for putItem.
awsv2.AWSV2Instrumentor(&cfg.APIOptions)
// Using the Config value, create the DynamoDB client
svc := dynamodb.NewFromConfig(cfg)
I got below error:
Suppressing AWS X-Ray context missing panic: failed to begin subsegment named 'DynamoDB': segment cannot be found.
Is there any other configuration needed for putItem?