Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/instrumentation-restify

Package Overview
Dependencies
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-restify - npm Package Compare versions

Comparing version 0.33.0 to 0.34.0

2

build/src/constants.js

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

exports.MODULE_NAME = 'restify';
exports.SUPPORTED_VERSIONS = ['>=4.0.0 <9'];
exports.SUPPORTED_VERSIONS = ['>=4.0.0 <12'];
//# sourceMappingURL=constants.js.map

@@ -17,9 +17,18 @@ "use strict";

*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const instrumentation_1 = require("./instrumentation");
(0, tslib_1.__exportStar)(require("./instrumentation"), exports);
__exportStar(require("./instrumentation"), exports);
exports.default = instrumentation_1.RestifyInstrumentation;
(0, tslib_1.__exportStar)(require("./enums/AttributeNames"), exports);
(0, tslib_1.__exportStar)(require("./types"), exports);
__exportStar(require("./enums/AttributeNames"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

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

if ((httpMetadata === null || httpMetadata === void 0 ? void 0 : httpMetadata.type) === core_1.RPCType.HTTP) {
httpMetadata.span.updateName(`${req.method} ${route}`);
httpMetadata.route = route;
}

@@ -154,6 +154,3 @@ const fnName = handler.name || undefined;

};
let newContext = api.trace.setSpan(api.context.active(), span);
if (httpMetadata) {
newContext = (0, core_1.setRPCMetadata)(newContext, Object.assign(httpMetadata, { route }));
}
const newContext = api.trace.setSpan(api.context.active(), span);
return api.context.with(newContext, (req, res, next) => {

@@ -160,0 +157,0 @@ if ((0, utils_1.isAsyncFunction)(handler)) {

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

export declare const VERSION = "0.33.0";
export declare const VERSION = "0.34.0";
//# sourceMappingURL=version.d.ts.map

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

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

@@ -54,9 +54,9 @@ "main": "build/src/index.js",

"@types/mocha": "7.0.2",
"@types/node": "18.11.7",
"@types/restify": "4.3.8",
"@types/semver": "^7.3.12",
"@types/node": "18.16.19",
"@types/restify": "4.3.9",
"@types/semver": "7.5.0",
"mocha": "7.2.0",
"nyc": "15.1.0",
"restify": "8.6.1",
"rimraf": "5.0.0",
"restify": "11.1.0",
"rimraf": "5.0.1",
"semver": "^7.3.7",

@@ -69,8 +69,7 @@ "test-all-versions": "^5.0.1",

"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.41.0",
"@opentelemetry/semantic-conventions": "^1.0.0",
"tslib": "^2.3.1"
"@opentelemetry/instrumentation": "^0.41.2",
"@opentelemetry/semantic-conventions": "^1.0.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-restify#readme",
"gitHead": "f81f8a76a8f0af2101c62dbc73cde442f875d833"
"gitHead": "b3d30afe7376760d211b20c4fb45988ac58c1d85"
}

@@ -20,3 +20,3 @@ # OpenTelemetry Restify Instrumentation for Node.js

- `>=4.0.0 <9`
- `>=4.0.0 <12`

@@ -23,0 +23,0 @@ ## Usage

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

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