{"id":28558539,"url":"https://github.com/shelfio/aws-ddb-with-xray","last_synced_at":"2025-06-10T08:09:10.512Z","repository":{"id":65068901,"uuid":"220794596","full_name":"shelfio/aws-ddb-with-xray","owner":"shelfio","description":"AWS DynamoDB Document Client initialized with X-Ray","archived":false,"fork":false,"pushed_at":"2025-05-27T21:22:35.000Z","size":172,"stargazers_count":9,"open_issues_count":10,"forks_count":0,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-27T22:29:20.294Z","etag":null,"topics":["aws","dynamodb","xray"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shelfio.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-10T13:33:17.000Z","updated_at":"2025-04-05T21:00:43.000Z","dependencies_parsed_at":"2023-12-21T00:49:48.009Z","dependency_job_id":"eac2f3e2-d4b1-41d4-b772-81cd51863058","html_url":"https://github.com/shelfio/aws-ddb-with-xray","commit_stats":{"total_commits":109,"total_committers":5,"mean_commits":21.8,"dds":"0.27522935779816515","last_synced_commit":"23cfafd7fcb9b1b323ce00b416b9f5b7c6acac4a"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-ddb-with-xray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-ddb-with-xray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-ddb-with-xray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-ddb-with-xray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shelfio","download_url":"https://codeload.github.com/shelfio/aws-ddb-with-xray/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelfio%2Faws-ddb-with-xray/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257626359,"owners_count":22575043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","dynamodb","xray"],"created_at":"2025-06-10T08:09:09.239Z","updated_at":"2025-06-10T08:09:10.493Z","avatar_url":"https://github.com/shelfio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-ddb-with-xray [![CircleCI](https://circleci.com/gh/shelfio/aws-ddb-with-xray/tree/master.svg?style=svg)](https://circleci.com/gh/shelfio/aws-ddb-with-xray/tree/master) ![](https://img.shields.io/badge/code_style-prettier-ff69b4.svg) [![npm (scoped)](https://img.shields.io/npm/v/@shelf/aws-ddb-with-xray.svg)](https://www.npmjs.com/package/@shelf/aws-ddb-with-xray)\n\n\u003e 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](https://theburningmonk.com/2019/03/just-how-expensive-is-the-full-aws-sdk/)\n\n## Install\n\n```\n$ yarn add @shelf/aws-ddb-with-xray\n```\n\n## Usage\n\n```js\nconst {getDocumentClient} = require('@shelf/aws-ddb-with-xray');\n\nconst ddb = getDocumentClient({\n  ddbParams: {region: 'us-east-1', convertEmptyValues: true},\n  ddbClientParams: {region: 'us-east-1'},\n});\n\nawait ddb\n  .get({\n    TableName: 'foo',\n    Key: {hash_key: 'bar'},\n  })\n  .promise();\n```\n\n## Result\n\n![](./xray.png)\n\n## Publish\n\n```sh\n$ git checkout master\n$ yarn version\n$ yarn publish\n$ git push origin master --tags\n```\n\n## License\n\nMIT © [Shelf](https://shelf.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelfio%2Faws-ddb-with-xray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshelfio%2Faws-ddb-with-xray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelfio%2Faws-ddb-with-xray/lists"}