🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@opentelemetry/instrumentation-dataloader

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-dataloader - npm Package Compare versions

Comparing version

to
0.17.0

@@ -19,3 +19,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -22,0 +26,0 @@ if (k2 === undefined) k2 = k;

@@ -69,3 +69,2 @@ "use strict";

return function patchedBatchLoadFn(...args) {
var _a;
if (!instrumentation.isEnabled() ||

@@ -76,3 +75,3 @@ !instrumentation.shouldCreateSpans()) {

const parent = api_1.context.active();
const span = instrumentation.tracer.startSpan(instrumentation.getSpanName(inst, 'batch'), { links: (_a = this._batch) === null || _a === void 0 ? void 0 : _a.spanLinks }, parent);
const span = instrumentation.tracer.startSpan(instrumentation.getSpanName(inst, 'batch'), { links: this._batch?.spanLinks }, parent);
return api_1.context.with(api_1.trace.setSpan(parent, span), () => {

@@ -79,0 +78,0 @@ return original.apply(this, args)

@@ -1,3 +0,3 @@

export declare const PACKAGE_VERSION = "0.16.1";
export declare const PACKAGE_VERSION = "0.17.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-dataloader";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.PACKAGE_VERSION = '0.16.1';
exports.PACKAGE_VERSION = '0.17.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-dataloader';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-dataloader",
"version": "0.16.1",
"version": "0.17.0",
"description": "OpenTelemetry instrumentation for `dataloader` data fetching layer",

@@ -31,3 +31,3 @@ "main": "build/src/index.js",

"engines": {
"node": ">=14"
"node": "^18.19.0 || >=20.6.0"
},

@@ -47,6 +47,6 @@ "files": [

"@opentelemetry/api": "^1.3.0",
"@opentelemetry/context-async-hooks": "^1.8.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",
"@opentelemetry/sdk-trace-node": "^1.8.0",
"@types/mocha": "7.0.2",
"@opentelemetry/context-async-hooks": "^2.0.0",
"@opentelemetry/sdk-trace-base": "^2.0.0",
"@opentelemetry/sdk-trace-node": "^2.0.0",
"@types/mocha": "10.0.10",
"@types/node": "18.18.14",

@@ -57,9 +57,9 @@ "dataloader": "2.2.3",

"test-all-versions": "6.1.0",
"typescript": "4.4.4"
"typescript": "5.0.4"
},
"dependencies": {
"@opentelemetry/instrumentation": "^0.57.1"
"@opentelemetry/instrumentation": "^0.200.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-dataloader#readme",
"gitHead": "1eb77007669bae87fe5664d68ba6533b95275d52"
"gitHead": "32abc4c3c01d0e78e10022c74b6805b06e0e1fe7"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet