aws / aws/aws-xray-sdk-java

S3 TransferManager incompatible with AWS X-Ray

Open
#313 7 comments 0 reactions 1 assignee Claimed by @willarmiros View on GitHub
Dominant language
Java
Stars
100
Forks
100
PR merge metrics
No merged PRs in 30d

Description

Hello

We are currently using XRay for the services we own, and one of the API involves files transfer, so I add the dependency of using S3 `transferManager`. However this throws `XRay "SegmentNotFoundException"`.

Spend a little time checking what is the root cause and it turns out that it is because `transferManager` creates a thread pool and XRay is not able to gather context for the threads that transferManager created.

I am wondering any available solution for this already, having checked the following resources, but no luck

resources:

1. https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java-multithreading.html
2. https://github.com/aws-samples/eb-java-scorekeep/blob/xray/src/main/java/scorekeep/MoveFactory.java#L70-L79
3. https://stackoverflow.com/questions/53841672/aws-xray-sdk-issue-failed-to-begin-subsegment-named-amazon-s3-segment-cannot
4. https://github.com/aws/aws-sdk-java/issues/1572

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.