Skip to content

S3 TransferManager incompatible with AWS X-Ray #1572

Closed
@willvk

Description

@willvk

Having a few problems trying to trace a component, such as TransferManager, which manages its own thread pool. My guess would be to write your own extends of ExecutorService and then use the setExecutor(). This seems invasive and I think that integration between TransferManager and Xray should be provided more easily.

This issue/feature is similar to the one raised in the python library;
python github issue 52

Currently we have pulled the use of Transfer Manager and have reverted to just serially calling it for each part of our multipart upload, due to S3 Segment Not Found which results when the threads try to execute the upload.

Ideally Transfer Manager would be enhanced to be more compatible with Xray by enabling the TransferManagerBuilder to take a .withTraceEntity(Entity segment), which could then be injected into the new threads within that threadpool.
Injecting Trace Entity

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions