{"library":"aws-xray-sdk-postgres","type":"library","category":null,"description":"aws-xray-sdk-postgres is the official AWS X-Ray patcher for Postgres (pg) Node.js driver, version 3.12.0. It automatically records SQL queries, request/response data, and errors as subsegments under the X-Ray trace. Compatible with Postgres 6.1.0+. Requires aws-xray-sdk-core as a peer dependency. Supports both automatic (via cls-hooked) and manual segment tracking. Ships TypeScript definitions. Maintenance is tied to the SDK core; release cadence is periodic alongside core updates. Key differentiator: seamless integration with AWS X-Ray for tracing database calls with minimal code changes.","language":"javascript","status":"active","version":"3.12.0","tags":["javascript","amazon","api","aws","postgres","xray","x-ray","x ray","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install aws-xray-sdk-postgres","imports":["const capturePostgres = require('aws-xray-sdk-postgres')","const AWSXRay = require('aws-xray-sdk-core')","import capturePostgres from 'aws-xray-sdk-postgres'"]},{"cmd":"yarn add aws-xray-sdk-postgres","imports":[]},{"cmd":"pnpm add aws-xray-sdk-postgres","imports":[]}],"homepage":"https://github.com/aws/aws-xray-sdk-node/tree/master#readme","github":"https://github.com/aws/aws-xray-sdk-node#master","docs":null,"changelog":null,"pypi":null,"npm":"aws-xray-sdk-postgres","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}