aws/aws-xray-sdk-java

Bug: Service Map does not show S3 bucket name

Opened this issue · 1 comments

The service map in CloudWatch / X-Ray does not show the bucket name:
image

I guess it is similar to the following issue (just for S3 instead of SQS): #373

The file https://github.com/aws/aws-xray-sdk-java/blob/master/aws-xray-recorder-sdk-aws-sdk-v2/src/main/resources/com/amazonaws/xray/interceptors/DefaultOperationParameterWhitelist.json seems to be misconfigured.

The name of the bucket name key is wrong. It is "BucketName", but it should be only "Bucket". See the debugger inside the DeleteObjectRequest class ("BucketName" does not match "Bucket" inside the switch case):
image

For example

"DeleteObject": {
  "request_parameters": [
    "Key",
    "BucketName"
  ]
},

should probably be

"DeleteObject": {
  "request_parameters": [
    "Key",
    "Bucket"
  ]
},

Thanks for bringing this to our attention!
I have merged in a fix that will be in our next release.

#393