Skip to content
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

emit DDB_MAPPER business metric #1426

Merged
merged 2 commits into from
Oct 3, 2024
Merged

Conversation

ianbotsf
Copy link
Contributor

Issue #

Related to #472

Description of changes

This change adds support for emitting business metrics from the DDB mapper via an interceptor.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ianbotsf ianbotsf requested a review from a team as a code owner September 30, 2024 23:32
Copy link

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

/**
* An interceptor that emits the DynamoDB Mapper business metric
*/
private object DdbMapperMetricInterceptor : HttpInterceptor {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit/naming: DdbMapperBusinessMetricInterceptor

* Wraps a low-level [DynamoDbClient] to add additional features before instantiating a new
* [DynamoDbMapperImpl].
*/
fun wrapping(client: DynamoDbClient, config: DynamoDbMapper.Config): DynamoDbMapperImpl {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would a name like withConfig be clearer?

@ianbotsf ianbotsf marked this pull request as draft October 1, 2024 14:36
Copy link

sonarcloud bot commented Oct 2, 2024

Copy link

github-actions bot commented Oct 2, 2024

A new generated diff is ready to view.

  • No codegen difference in the AWS SDK

@ianbotsf ianbotsf marked this pull request as ready for review October 2, 2024 21:22
@ianbotsf ianbotsf merged commit 535d4c3 into feat-ddb-mapper Oct 3, 2024
11 checks passed
@ianbotsf ianbotsf deleted the ddbmapper-feature-id branch October 3, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants