@opentelemetry/instrumentation-mongoose
Advanced tools
Comparing version 0.38.0 to 0.38.1
@@ -48,3 +48,3 @@ "use strict"; | ||
constructor(config = {}) { | ||
super('@opentelemetry/instrumentation-mongoose', version_1.VERSION, Object.assign({}, config)); | ||
super('@opentelemetry/instrumentation-mongoose', version_1.VERSION, config); | ||
} | ||
@@ -88,3 +88,2 @@ setConfig(config = {}) { | ||
const self = this; | ||
this._diag.debug('patched mongoose Aggregate exec function'); | ||
return (originalAggregate) => { | ||
@@ -113,3 +112,2 @@ return function exec(callback) { | ||
const self = this; | ||
this._diag.debug('patched mongoose Query exec function'); | ||
return (originalExec) => { | ||
@@ -139,3 +137,2 @@ return function exec(callback) { | ||
const self = this; | ||
this._diag.debug(`patching mongoose Model '${op}' operation`); | ||
return (originalOnModelFunction) => { | ||
@@ -171,3 +168,2 @@ return function method(options, callback) { | ||
const self = this; | ||
this._diag.debug('patched mongoose model aggregate function'); | ||
return (original) => { | ||
@@ -185,3 +181,2 @@ return function captureSpanContext() { | ||
const self = this; | ||
this._diag.debug(`patching mongoose query ${funcName} function`); | ||
return (original) => { | ||
@@ -188,0 +183,0 @@ return function captureSpanContext() { |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.38.0"; | ||
export declare const VERSION = "0.38.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.38.0'; | ||
exports.VERSION = '0.38.1'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-mongoose", | ||
"version": "0.38.0", | ||
"version": "0.38.1", | ||
"description": "OpenTelemetry automatic instrumentation package for mongoose", | ||
@@ -68,3 +68,3 @@ "main": "build/src/index.js", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-mongoose#readme", | ||
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973" | ||
"gitHead": "a2e2b5a1aa2910b903829d215184c43d2107b9ac" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
65170
399