@opentelemetry/instrumentation-pg
Advanced tools
Comparing version 0.20.0 to 0.21.0
@@ -87,3 +87,3 @@ "use strict"; | ||
if (parentSpan) { | ||
args[args.length - 1] = api_1.context.bind(args[args.length - 1]); | ||
args[args.length - 1] = api_1.context.bind(api_1.context.active(), args[args.length - 1]); | ||
} | ||
@@ -96,3 +96,3 @@ } | ||
if (parentSpan) { | ||
callback = api_1.context.bind(callback); | ||
callback = api_1.context.bind(api_1.context.active(), callback); | ||
} | ||
@@ -156,3 +156,3 @@ // Copy the callback instead of writing to args.callback so that we don't modify user's | ||
if (parentSpan) { | ||
callback = api_1.context.bind(callback); | ||
callback = api_1.context.bind(api_1.context.active(), callback); | ||
} | ||
@@ -164,3 +164,3 @@ } | ||
const connectResultPromise = connectResult; | ||
return api_1.context.bind(connectResultPromise | ||
return api_1.context.bind(api_1.context.active(), connectResultPromise | ||
.then(result => { | ||
@@ -167,0 +167,0 @@ // Return a pass-along promise which ends the span and then goes to user's orig resolvers |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.20.0"; | ||
export declare const VERSION = "0.21.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.20.0'; | ||
exports.VERSION = '0.21.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-pg", | ||
"version": "0.20.0", | ||
"version": "0.21.0", | ||
"description": "OpenTelemetry postgres automatic instrumentation package.", | ||
@@ -49,9 +49,13 @@ "main": "build/src/index.js", | ||
}, | ||
"peerDependencies": { | ||
"@opentelemetry/api": "^0.21.0" | ||
}, | ||
"devDependencies": { | ||
"@opentelemetry/context-async-hooks": "0.20.0", | ||
"@opentelemetry/node": "0.20.0", | ||
"@opentelemetry/test-utils": "^0.20.0", | ||
"@opentelemetry/tracing": "0.20.0", | ||
"@opentelemetry/api": "0.21.0", | ||
"@opentelemetry/context-async-hooks": "0.21.0", | ||
"@opentelemetry/node": "0.21.0", | ||
"@opentelemetry/test-utils": "^0.21.0", | ||
"@opentelemetry/tracing": "0.21.0", | ||
"@types/mocha": "7.0.2", | ||
"@types/node": "14.17.2", | ||
"@types/node": "14.17.3", | ||
"codecov": "3.8.2", | ||
@@ -69,9 +73,8 @@ "cross-env": "7.0.3", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.20.0", | ||
"@opentelemetry/instrumentation": "^0.20.0", | ||
"@opentelemetry/semantic-conventions": "^0.20.0", | ||
"@opentelemetry/instrumentation": "^0.21.0", | ||
"@opentelemetry/semantic-conventions": "^0.21.0", | ||
"@types/pg": "8.6.0", | ||
"@types/pg-pool": "2.0.2" | ||
}, | ||
"gitHead": "5d73dc2d11a8fd57b21a0c6286861cb992556ca1" | ||
"gitHead": "621f0141e406b75ef11a77fb85ce8caab9c8a272" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
41165
0
17
+ Added@opentelemetry/api@0.21.0(transitive)
+ Added@opentelemetry/api-metrics@0.21.0(transitive)
+ Added@opentelemetry/instrumentation@0.21.0(transitive)
+ Added@opentelemetry/semantic-conventions@0.21.0(transitive)
- Removed@opentelemetry/api@^0.20.0
- Removed@opentelemetry/api@0.20.0(transitive)
- Removed@opentelemetry/api-metrics@0.20.0(transitive)
- Removed@opentelemetry/instrumentation@0.20.0(transitive)
- Removed@opentelemetry/semantic-conventions@0.20.0(transitive)