-
Notifications
You must be signed in to change notification settings - Fork 146
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
feat(tracer): add support for capturing DynamoDB DocumentClient #450
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add an e2e test ?
Good idea, will do and come back to you |
Swapped STS calls for DynamoDB calls in all e2e tests for Tracer. Checks are now failing for unrelated reason, need to check why. |
you probably need to rebase first |
ac09115
to
31969a3
Compare
You were right, that worked. Thanks a lot, now checks are passing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great DX improvement :)
btw, I can't find this branch run in E2E workflow. Normally this should be triggerred in "Approve" step but we don't have this for core maintainer.
Is there a way for us to (manually?) run this before merging?
@flochaz @ijemmy ran the workflow, passing result here. |
Description of your changes
Customer feedback (link) has pointed out a quirk of instrumenting a DynamoDB DocumentClient, in their words:
The new implementation attempts to instrument a client normally (reference) first and then, if that fails, it tries to do so by accessing the
service
property. If both fail it throws as expected.The advantage of this new mechanism (see example below) is that customers can instrument the
DocumentClient
in the same way as they do with other AWS SDK clients thus providing a more ergonomic API (& hopefully better DX).How to verify this change
Before:
After:
Related issues, RFCs
N/A
PR status
Is this ready for review?: YES
Is it a breaking change?: NO
Checklist
Breaking change checklist
N/A
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.