-
Notifications
You must be signed in to change notification settings - Fork 225
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: implment awk-sdk v2 dynamodb instrumentation #2128
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
Jenkins run the tests please |
jenkins run the tests please |
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.
A first pass with non-substantive feedback. I'll start playing with it tomorrow for real to give feedback on the actual DynamoDB-bits.
For the record here is an example generated span for a "client.query()" call:
|
Here is an example captured error event for a failed conditional PutItem:
That's from this PutItem: var params = {
TableName: TABLE_NAME,
Item: putItemItemFromObject(
{
Artist: 'No One You Know',
SongTitle: 'Somewhere Down The Road',
AlbumTitle: 'Somewhat Famous',
Genre: 'Country',
Year: 1984
}
),
ConditionExpression: 'attribute_not_exists(SongTitle)'
}
ddbClient.putItem(params, function (err, data) {
log.info({params, err, data}, 'putItem conditional')
next(err ? null : new Error('expected conditional PutItem to fail, but it did not'))
})
|
Here is a play-dynamodb.js script (and sample output against localstack): https://gist.github.com/trentm/5f9caf59fff246bc99088cf458e29ae9 |
That ran fine against real-AWS as well, and generated spans that I expect. 👍 |
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.
Assuming tests pass.
jenkins run the tests please |
* feat: Implements dynamodb instrumentation for aws sdk v2 Implements elastic#1953
Implements #1953
This PR add instrumentations (and tests for same) for the DynamoDB APIs provided by the v2 of the AWS SDK.
(sorting out some jenkins issues, but 99% sure the problems are not related to the code in the PR)
Checklist