@shelf/aws-ddb-with-xray
v2.2.5 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/aws-ddb-with-xray
Source Code
github.com/shelfio/aws-ddb-w...Metadata
- MIT
- >=16
- Vlad Holubiev
- released 9/30/2024
Downloads
Maintainers
vadymaslovskyi, andrew_batutin, marianna-milovanova, ksenia_holovko, petro.bodnarchuk, kateryna-kochina, maksym.tarnavskyi, andrii-nastenko, mykhailo.yatsko, ahavrysh, nikita_shelf, maciej.orlowski, monopotan, andrew214, bogdan.kolesnyk, andrii.batutin, kristina.zhak, anton-russo, mmazurowski, mateuszgajdashelf, kchlon, dmytro.harazdovskiy, duch0416, i5adovyi, olesiamuller, mykola.khytra, yuliiakovalchuk, el_scrambone, bodyaflesh, andriisermiahin, mpushkin, batovpavlo, domovoj, vozemer, oleksii.dymnich, dima-bond, maksym.hayovets, oles.zadorozhnyy, ss1l, gemshelf, hartzler, vladgolubev, hmelenok, knupman, maaraanas, terret, chapelskyi.slavik, pihorb, irynah, diana.kryskuv, andy.raven, rafler, sskalp88, demiansua, yuriil, ktv18, drews_abuse, rostyslav-horytskyi, whodeen,