aws-xray-sdk-postgres
Advanced tools
Comparing version 3.0.0-alpha.2 to 3.0.0
{ | ||
"name": "aws-xray-sdk-postgres", | ||
"version": "3.0.0-alpha.2", | ||
"version": "3.0.0", | ||
"description": "AWS X-Ray Patcher for Postgres (Javascript)", | ||
@@ -12,3 +12,3 @@ "author": "Amazon Web Services", | ||
"engines": { | ||
"node": ">= 4.x" | ||
"node": ">= 10.x" | ||
}, | ||
@@ -22,6 +22,6 @@ "directories": { | ||
"peerDependencies": { | ||
"aws-xray-sdk-core": "^3.0.0-alpha.2" | ||
"aws-xray-sdk-core": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"aws-xray-sdk-core": "^3.0.0-alpha.2", | ||
"aws-xray-sdk-core": "^3.0.0", | ||
"chai": "^3.5.0", | ||
@@ -53,3 +53,3 @@ "eslint": "^4.19.1", | ||
"repository": "https://github.com/aws/aws-xray-sdk-node/tree/master/packages/postgres", | ||
"gitHead": "77a4358f9e40e4666b764e2753ec55a929e09297" | ||
"gitHead": "bfbc97d88f8452a288dc6396c9cc0f9cffcf45fd" | ||
} |
## Requirements | ||
AWS X-Ray SDK Core | ||
Postgres 6.1.0 or greater | ||
* AWS X-Ray SDK Core | ||
* Postgres 6.1.0 or greater | ||
@@ -13,3 +13,3 @@ ## AWS X-Ray and Postgres | ||
The AWS X-Ray SDK Core has two modes - `manual` and `automatic`. | ||
Automatic mode uses the Continuation Local Storage package (CLS) and automatically | ||
Automatic mode uses the `cls-hooked` package and automatically | ||
tracks the current segment and subsegment. This is the default mode. | ||
@@ -23,2 +23,12 @@ Manual mode requires that you pass around the segment reference. See the examples below. | ||
### Lambda Example | ||
var AWSXRay = require('aws-xray-sdk'); | ||
var pg = AWSXRay.capturePostgres(require('pg')); | ||
... | ||
exports.handler = function (event, context, callback) { | ||
// Make postgres queries normally | ||
} | ||
### Automatic mode example | ||
@@ -25,0 +35,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
34433
1
93