aws / aws/aws-sdk-java-v2

Allow attaching MetricPublisher for DynamoDBEnhanced and DynamoDBEnhancedAsyncClient client calls

Open
#2,514 5 comments 0 reactions 0 assignees View on GitHub
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

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.