@shelf/aws-ddb-with-xray
v1.0.0 aws sdk document client dynamodb x-ray xray
aws-ddb-with-xray
Adding X-Ray to DynamoDB Document Client requires a hack (see https://git.io/JeaSG). This package encapsulates that logic. Also, it imports only the DynamoDB client not the full aws-sdk for better performance
Install
$ yarn add @shelf/aws-ddb-with-xray
Usage
const {getDocumentClient} = require('@shelf/aws-ddb-with-xray');
const ddb = getDocumentClient({
ddbParams: {region: 'us-east-1', convertEmptyValues: true},
ddbClientParams: {region: 'us-east-1'},
});
await ddb
.get({
TableName: 'foo',
Key: {hash_key: 'bar'},
})
.promise();
Result
Publish
$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags
License
MIT © Shelf
npm i @shelf/[email protected]
Source Code
github.com/shelfio/aws-ddb-w...Metadata
- MIT
- >=16
- Vlad Holubiev
- released 7/22/2022
Downloads
Maintainers
anastasiash, kchlon, dmytro.harazdovskiy, duch0416, i5adovyi, olesiamuller, mykola.khytra, yuliiakovalchuk, el_scrambone, bodyaflesh, slavammellnikov, andrii-nastenko, andriisermiahin, arkadii007, mpushkin, batovpavlo, andrew214, domovoj, vozemer, oleksii.dymnich, set001, dima-bond, maksym.hayovets, oles.zadorozhnyy, ss1l, gemshelf, d-mii-, hartzler, tarasdyksan, andrii_butsa, nazarko_suv, bogdan.kolesnyk, vitaliishcherban, vladgolubev, marianna-milovanova, hmelenok, knupman, maaraanas, terret, chapelskyi.slavik, pihorb, irynah, diana.kryskuv, andy.raven, rafler, mykola.chepkyi, sskalp88, demiansua, yuriil, ktv18, drews_abuse, rostyslav-horytskyi, whodeen,