Nevermore: a Poet's Mantra

    @shelf/aws-ddb-with-xray
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.1 • Public • Published

    aws-ddb-with-xray CircleCI npm (scoped)

    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

    Install

    npm i @shelf/aws-ddb-with-xray

    DownloadsWeekly Downloads

    2,127

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    7.35 kB

    Total Files

    11

    Last publish

    Collaborators

    • anastasiash
    • kchlon
    • dmytro.harazdovskiy
    • duch0416
    • i5adovyi
    • olesiamuller
    • mykola.khytra
    • yuliiakovalchuk
    • el_scrambone
    • bodyaflesh
    • slavammellnikov
    • andrii-nastenko
    • andriisermiahin
    • arkadii007
    • mpushkin
    • batovpavlo
    • vasylhoban
    • 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