Allow attaching MetricPublisher for DynamoDBEnhanced and DynamoDBEnhancedAsyncClient client calls
Open
dynamodb-enhanced
feature-request
p3
sdk-metrics
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 51
Description
Today, when I use the low level `DynamoDBClient` or `DynamoDBAsyncClient`, I can attach a `MetricsPublisher` to the underlying `GetItemRequest`, `PutItemRequest` etc. However if I decide to use the DynamoDBEnhancedClient or DynamoDBEnhancedAsyncClient, there is no way to attach similar `MetricsPublisher` instances to `load` and `save` calls.
I am aware that I can attach a `MetricsPublisher` to the underlying `DynamoDBClient` instance used by the DynamoDBEnhanceClient but I need to collect and publish metrics at each request level.
This is similar to how for normal GetItem calls I can attach MetricPublishers at individual request level.
Contributor guide
Assessment
This issue has not been assessed yet.