-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 TransferManager incompatible with AWS X-Ray #313
Comments
Hi @Zhenye-Na, Thank you for raising this. You're on the right track. Basically the X-Ray SDK stores segment context using ThreadLocal. It uses this context to capture outgoing AWS SDK requests & generate a subsegment for them. If there's no context available, the SDK throws a To ignore this error, you can set the env var |
Hello @willarmiros Thank you so much for your reply and confirmation on the experiments I did. Basically what happened after this is we decided to temporarily bypass the I will open a feature request in the repo you mentioned above. However, I am not very familiar with the "terminology" / detailed process to solve this problem. Do you mind if I cc you later in the new issue I raised for Thank you so much! Merry Xmas 🎅 |
add some details on my own experiments for someone comes to this issues:
|
No problem
Hmm so just adding X-Ray instrumentation and the ignore error strategy caused the request to time out? That's strange. It might have something to do with how transferManager works. Feel free to post some reproduction code, but glad you have a workaround for now! |
open-telemetry/opentelemetry-java-instrumentation#6104 Issue created in OpenTelemetry Java, lets see how this goes |
Also, raised one ticket in AWS SDK v2 to see if we get the chance to fix this |
I am wondering if this issue will be included in the roadmap ? Or are there any workarounds if we would like to continue use X-Ray in a multi-threading env |
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 throwsXRay "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:
The text was updated successfully, but these errors were encountered: