@google-cloud/trace-agent
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -87,4 +87,4 @@ /// <reference types="node" /> | ||
bindWithCurrentContext<T>(fn: Func<T>): Func<T>; | ||
patchEmitterToPropagateContext<T>(ee: EventEmitter): void; | ||
patchEmitterToPropagateContext(ee: EventEmitter): void; | ||
} | ||
export declare const cls: Singleton<TraceCLS, TraceCLSConfig, Logger>; |
@@ -112,3 +112,3 @@ "use strict"; | ||
patchPromise(promise, span) { | ||
return (promise = promise.then(res => { | ||
return promise.then(res => { | ||
this.maybePopulateLabelsFromOutputs(span, null, res); | ||
@@ -121,3 +121,3 @@ span.endSpan(); | ||
throw err; | ||
})); | ||
}); | ||
} | ||
@@ -228,3 +228,3 @@ } | ||
// here. | ||
pgPatch.patchPromise(pgQuery, span); | ||
pgQuery = pgPatch.patchPromise(pgQuery, span); | ||
} | ||
@@ -231,0 +231,0 @@ } |
@@ -165,3 +165,3 @@ "use strict"; | ||
file: '', | ||
versions: '>=2.6', | ||
versions: '>=2.6 <4.0', | ||
patch: function (redis, api) { | ||
@@ -168,0 +168,0 @@ wrapCreateStream(redis, api); |
@@ -117,2 +117,3 @@ "use strict"; | ||
// Make trace agent available globally without requiring package | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
global._google_trace_agent = this.traceAgent; | ||
@@ -119,0 +120,0 @@ this.logger.info('StackdriverTracer#start: Trace Agent activated.'); |
# Changelog | ||
## [7.1.1](https://github.com/googleapis/cloud-trace-nodejs/compare/v7.1.0...v7.1.1) (2022-08-29) | ||
### Bug Fixes | ||
* **pg:** Return patched promise instead of original ([#1470](https://github.com/googleapis/cloud-trace-nodejs/issues/1470)) ([e79407e](https://github.com/googleapis/cloud-trace-nodejs/commit/e79407e2eae08ac26aa67058b1b2c9db278f2735)) | ||
* **redis:** Apply instrumentation only for Redis <4.0 ([b75f5d8](https://github.com/googleapis/cloud-trace-nodejs/commit/b75f5d81e9454ea90ea5b9c5c7576f809a88ff60)) | ||
* remove pip install statements ([#1546](https://github.com/googleapis/cloud-trace-nodejs/issues/1546)) ([#1468](https://github.com/googleapis/cloud-trace-nodejs/issues/1468)) ([fbcc88c](https://github.com/googleapis/cloud-trace-nodejs/commit/fbcc88c017d9a368e800bb070f33ff52cf4f0b99)) | ||
* Remove unused type arg ([#1467](https://github.com/googleapis/cloud-trace-nodejs/issues/1467)) ([ed422ed](https://github.com/googleapis/cloud-trace-nodejs/commit/ed422edac3de50551eadb791bc993356345d1647)) | ||
## [7.1.0](https://github.com/googleapis/cloud-trace-nodejs/compare/v7.0.0...v7.1.0) (2022-08-10) | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "@google-cloud/trace-agent", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"description": "Node.js Support for StackDriver Trace", | ||
@@ -63,3 +63,3 @@ "main": "build/src/index.js", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^14.0.0", | ||
"@types/node": "^16.0.0", | ||
"@types/node-fetch": "^2.5.0", | ||
@@ -70,3 +70,3 @@ "@types/once": "^1.4.0", | ||
"@types/shimmer": "^1.0.1", | ||
"@types/source-map-support": "^0.5.1", | ||
"@types/source-map-support": "0.5.1", | ||
"@types/tmp": "0.2.3", | ||
@@ -92,3 +92,3 @@ "@types/uuid": "^8.0.0", | ||
"ts-node": "^10.7.0", | ||
"typescript": "^4.6.4" | ||
"typescript": "~4.7" | ||
}, | ||
@@ -95,0 +95,0 @@ "dependencies": { |
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
366913
6933