Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-mongoose

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-mongoose - npm Package Compare versions

Comparing version 0.32.0 to 0.32.1

8

build/src/mongoose.js

@@ -192,3 +192,3 @@ "use strict";

kind: api_1.SpanKind.CLIENT,
attributes: Object.assign(Object.assign(Object.assign({}, attributes), utils_1.getAttributesFromCollection(collection)), { [semantic_conventions_1.SemanticAttributes.DB_OPERATION]: operation, [semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: 'mongoose' }),
attributes: Object.assign(Object.assign(Object.assign({}, attributes), (0, utils_1.getAttributesFromCollection)(collection)), { [semantic_conventions_1.SemanticAttributes.DB_OPERATION]: operation, [semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: 'mongoose' }),
}, parentSpan ? api_1.trace.setSpan(api_1.context.active(), parentSpan) : undefined);

@@ -199,7 +199,7 @@ }

if (callback instanceof Function) {
return self._callOriginalFunction(() => utils_1.handleCallbackResponse(callback, exec, originalThis, span, self._config.responseHook, moduleVersion));
return self._callOriginalFunction(() => (0, utils_1.handleCallbackResponse)(callback, exec, originalThis, span, self._config.responseHook, moduleVersion));
}
else {
const response = self._callOriginalFunction(() => exec.apply(originalThis, args));
return utils_1.handlePromiseResponse(response, span, self._config.responseHook, moduleVersion);
return (0, utils_1.handlePromiseResponse)(response, span, self._config.responseHook, moduleVersion);
}

@@ -210,3 +210,3 @@ }

if ((_a = this._config) === null || _a === void 0 ? void 0 : _a.suppressInternalInstrumentation) {
return api_1.context.with(core_1.suppressTracing(api_1.context.active()), originalFunction);
return api_1.context.with((0, core_1.suppressTracing)(api_1.context.active()), originalFunction);
}

@@ -213,0 +213,0 @@ else {

@@ -43,3 +43,3 @@ "use strict";

}
instrumentation_1.safeExecuteInTheMiddle(() => responseHook(span, { moduleVersion, response }), e => {
(0, instrumentation_1.safeExecuteInTheMiddle)(() => responseHook(span, { moduleVersion, response }), e => {
if (e) {

@@ -46,0 +46,0 @@ api_1.diag.error('mongoose instrumentation: responseHook error', e);

@@ -1,2 +0,2 @@

export declare const VERSION = "0.32.0";
export declare const VERSION = "0.32.1";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.32.0';
exports.VERSION = '0.32.1';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-mongoose",
"version": "0.32.0",
"version": "0.32.1",
"description": "OpenTelemetry automatic instrumentation package for mongoose",

@@ -49,7 +49,7 @@ "main": "build/src/index.js",

"@opentelemetry/api": "^1.3.0",
"@opentelemetry/contrib-test-utils": "^0.33.0",
"@opentelemetry/contrib-test-utils": "^0.33.1",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@types/mocha": "8.2.3",
"@types/node": "18.11.7",
"expect": "27.4.2",
"expect": "29.2.0",
"gts": "3.1.0",

@@ -62,11 +62,11 @@ "mocha": "7.2.0",

"ts-mocha": "10.0.0",
"typescript": "4.3.5"
"typescript": "4.4.4"
},
"dependencies": {
"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.34.0",
"@opentelemetry/instrumentation": "^0.35.1",
"@opentelemetry/semantic-conventions": "^1.0.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-mongoose#readme",
"gitHead": "59fa57cfd0dff4ae0e6f3833dff73c55dfd79ee5"
"gitHead": "63e0fc9b6b862f74304abf0343c506a5bd415191"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc