Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-nestjs-core

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-nestjs-core - npm Package Compare versions

Comparing version 0.33.1 to 0.33.2

4

build/src/instrumentation.js

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

return function (req, res, next) {
var _a;
var _a, _b;
const callbackName = callback.name;

@@ -108,3 +108,3 @@ const instanceName = instance.constructor && instance.constructor.name

const span = tracer.startSpan(spanName, {
attributes: Object.assign(Object.assign({}, Instrumentation.COMMON_ATTRIBUTES), { [enums_1.AttributeNames.VERSION]: moduleVersion, [enums_1.AttributeNames.TYPE]: enums_1.NestType.REQUEST_CONTEXT, [semantic_conventions_1.SemanticAttributes.HTTP_METHOD]: req.method, [semantic_conventions_1.SemanticAttributes.HTTP_URL]: req.originalUrl || req.url, [semantic_conventions_1.SemanticAttributes.HTTP_ROUTE]: ((_a = req.route) === null || _a === void 0 ? void 0 : _a.path) || req.routerPath, [enums_1.AttributeNames.CONTROLLER]: instanceName, [enums_1.AttributeNames.CALLBACK]: callbackName }),
attributes: Object.assign(Object.assign({}, Instrumentation.COMMON_ATTRIBUTES), { [enums_1.AttributeNames.VERSION]: moduleVersion, [enums_1.AttributeNames.TYPE]: enums_1.NestType.REQUEST_CONTEXT, [semantic_conventions_1.SemanticAttributes.HTTP_METHOD]: req.method, [semantic_conventions_1.SemanticAttributes.HTTP_URL]: req.originalUrl || req.url, [semantic_conventions_1.SemanticAttributes.HTTP_ROUTE]: ((_a = req.route) === null || _a === void 0 ? void 0 : _a.path) || ((_b = req.routeOptions) === null || _b === void 0 ? void 0 : _b.url) || req.routerPath, [enums_1.AttributeNames.CONTROLLER]: instanceName, [enums_1.AttributeNames.CALLBACK]: callbackName }),
});

@@ -111,0 +111,0 @@ const spanContext = api.trace.setSpan(api.context.active(), span);

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

export declare const VERSION = "0.33.1";
export declare const VERSION = "0.33.2";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.33.1';
exports.VERSION = '0.33.2';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-nestjs-core",
"version": "0.33.1",
"version": "0.33.2",
"description": "OpenTelemetry NestJS automatic instrumentation package.",

@@ -61,4 +61,4 @@ "main": "build/src/index.js",

"@types/mocha": "7.0.2",
"@types/node": "18.16.19",
"@types/semver": "7.5.0",
"@types/node": "18.6.5",
"@types/semver": "7.5.3",
"cross-env": "7.0.3",

@@ -68,3 +68,3 @@ "mocha": "7.2.0",

"reflect-metadata": "0.1.13",
"rimraf": "5.0.1",
"rimraf": "5.0.5",
"rxjs": "7.3.0",

@@ -78,7 +78,7 @@ "rxjs-compat": "6.6.7",

"dependencies": {
"@opentelemetry/instrumentation": "^0.41.2",
"@opentelemetry/instrumentation": "^0.44.0",
"@opentelemetry/semantic-conventions": "^1.0.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-nestjs-core#readme",
"gitHead": "b3d30afe7376760d211b20c4fb45988ac58c1d85"
"gitHead": "a8c225d2febcac561a70ca586d3efd5a84f9f3fa"
}

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