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

@opentelemetry/instrumentation-restify

Package Overview
Dependencies
Maintainers
2
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.32.0 to 0.32.1

14

build/src/instrumentation.js

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

for (const name of constants.RESTIFY_METHODS) {
if (instrumentation_1.isWrapped(Server.prototype[name])) {
if ((0, instrumentation_1.isWrapped)(Server.prototype[name])) {
this._unwrap(Server.prototype, name);

@@ -57,3 +57,3 @@ }

for (const name of constants.RESTIFY_MW_METHODS) {
if (instrumentation_1.isWrapped(Server.prototype[name])) {
if ((0, instrumentation_1.isWrapped)(Server.prototype[name])) {
this._unwrap(Server.prototype, name);

@@ -106,3 +106,3 @@ }

// replace HTTP instrumentations name with one that contains a route
const httpMetadata = core_1.getRPCMetadata(api.context.active());
const httpMetadata = (0, core_1.getRPCMetadata)(api.context.active());
if ((httpMetadata === null || httpMetadata === void 0 ? void 0 : httpMetadata.type) === core_1.RPCType.HTTP) {

@@ -128,3 +128,3 @@ httpMetadata.span.updateName(`${req.method} ${route}`);

if (requestHook) {
instrumentation_1.safeExecuteInTheMiddle(() => {
(0, instrumentation_1.safeExecuteInTheMiddle)(() => {
return requestHook(span, {

@@ -159,6 +159,6 @@ request: req,

if (httpMetadata) {
newContext = core_1.setRPCMetadata(newContext, Object.assign(httpMetadata, { route }));
newContext = (0, core_1.setRPCMetadata)(newContext, Object.assign(httpMetadata, { route }));
}
return api.context.with(newContext, (req, res, next) => {
if (utils_1.isAsyncFunction(handler)) {
if ((0, utils_1.isAsyncFunction)(handler)) {
return wrapPromise(handler(req, res, next));

@@ -168,3 +168,3 @@ }

const result = handler(req, res, next);
if (utils_1.isPromise(result)) {
if ((0, utils_1.isPromise)(result)) {
return wrapPromise(result);

@@ -171,0 +171,0 @@ }

@@ -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-restify",
"version": "0.32.0",
"version": "0.32.1",
"description": "OpenTelemetry restify automatic instrumentation package",

@@ -65,11 +65,11 @@ "main": "build/src/index.js",

"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/opentelemetry-instrumentation-restify#readme",
"gitHead": "8472e8273d14993a13f921b6f8173b20fb37a383"
"gitHead": "63e0fc9b6b862f74304abf0343c506a5bd415191"
}

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