aws / aws/aws-xray-sdk-java

Bug: Service Map does not show S3 bucket name

Open
#390 1 comment 0 reactions 1 assignee Claimed by @atshaw43 View on GitHub
Dominant language
Java
Stars
100
Forks
100
PR merge metrics
No merged PRs in 30d

Description

The service map in CloudWatch / X-Ray does not show the bucket name:
![image](https://github.com/aws/aws-xray-sdk-java/assets/38655254/ce2c6228-4a9a-4244-9c1f-3808c1e31b1f)

I guess it is similar to the following issue (just for S3 instead of SQS): https://github.com/aws/aws-xray-sdk-java/issues/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](https://github.com/aws/aws-xray-sdk-java/assets/38655254/a1866246-62cc-4c42-a09f-1dfc52544827)

For example
```json
"DeleteObject": {
"request_parameters": [
"Key",
"BucketName"
]
},
```
should probably be
```json
"DeleteObject": {
"request_parameters": [
"Key",
"Bucket"
]
},
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.