We are running a Kotlin service that regularly uploads large files to S3.
Currently we have our own multipart upload logic that uses the S3AsyncClient
, but we want to use S3TransferManager
as it already contains multipart logic.
We have configured the S3AsyncClient
to use a custom AwsMetricsPublisher
to publish metrics to Micrometer. These metrics include the number of uploaded files, chunks, their sizes and others.
How can we configure S3TransferManager
to publish these metrics? I can't find anything in the documentation or in existing code.